ctucx.git: ansible-configs

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

commit b42129206fc22fa21506b5ea914bb5efc176627c
parent 63437ef983760bc5d1ba1fde1ae1abf5df123a23
Author: Leah (ctucx) <leah@ctu.cx>
Date: Fri, 26 Feb 2021 14:54:22 +0100

roles/common/ntp: support systemd
1 file changed, 8 insertions(+), 0 deletions(-)
diff --git a/roles/common/tasks/ntp.yml b/roles/common/tasks/ntp.yml
@@ -38,3 +38,11 @@
   when: 
     - ansible_distribution == "Alpine"
     - system.useNTP is false
+
+- name: "[systemd] Enable and start service: systemd-timesyncd"
+  systemd:
+    name: systemd-timesyncd
+    state: started
+    enabled: yes
+  when: 
+    - ansible_service_mgr == "systemd"