From 55298a51cb0cc5e68c5a43869f2f32b899d3a622 Mon Sep 17 00:00:00 2001 From: Aaditya Dhruv Date: Tue, 22 Apr 2025 17:29:46 -0500 Subject: init --- roles/pihole/files/pihole.service | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 roles/pihole/files/pihole.service (limited to 'roles/pihole/files/pihole.service') diff --git a/roles/pihole/files/pihole.service b/roles/pihole/files/pihole.service new file mode 100644 index 0000000..6d992d0 --- /dev/null +++ b/roles/pihole/files/pihole.service @@ -0,0 +1,14 @@ +[Unit] +Description=Manage PiHole +After=network-online.target +Wants=network-online.target + +[Service] +Type=oneshot +RemainAfterExit=true +User=root +ExecStart=/usr/local/bin/podman-compose -f /opt/containers/pihole.yaml up -d +ExecStop=/usr/local/bin/podman-compose -f /opt/containers/pihole.yaml down + +[Install] +WantedBy=multi-user.target -- cgit