ctucx.git: ansible-configs

My personal ansible roles and playbooks [deprecated in favor of nixos]

commit 9f8a33e167ea6cbc0c3ffff01e3e3aabe6107f25
parent 5f79fe2035f9ca3f920960e41646614dc3638b8c
Author: Leah (ctucx) <leah@ctu.cx>
Date: Fri, 26 Feb 2021 14:14:42 +0100

roles/acme-redirect: start acme-redirect-renew.timer
2 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/roles/acme-redirect/tasks/remove.yml b/roles/acme-redirect/tasks/remove.yml
@@ -16,6 +16,14 @@
   when:
     - ansible_service_mgr == "systemd"
 
+- name: "[systemd] Disable and stop systemd-timer: acme-redirect-renew"
+  systemd:
+    name: acme-redirect-renew.timer
+    enabled: no
+    state: stopped
+  when:
+    - ansible_service_mgr == "systemd"
+
 - name: "[Alpine] Remove package: acme-redirect"
   apk:
     name: acme-redirect
diff --git a/roles/acme-redirect/tasks/start.yml b/roles/acme-redirect/tasks/start.yml
@@ -15,3 +15,11 @@
     state: started
   when:
     - ansible_service_mgr == "systemd"
+
+- name: "[systemd] Enable and start systemd-timer: acme-redirect-renew"
+  systemd:
+    name: acme-redirect-renew.timer
+    enabled: yes
+    state: started
+  when:
+    - ansible_service_mgr == "systemd"