Explorar el Código

Remove ntpd when systemd-timesyncd is active

Markus Lindenberg hace 8 años
padre
commit
e9b62d7c2c
Se han modificado 1 ficheros con 6 adiciones y 0 borrados
  1. 6 0
      roles/common-ntpclient/tasks/main.yml

+ 6 - 0
roles/common-ntpclient/tasks/main.yml

@@ -1,5 +1,11 @@
 ---
 
+- name: ensure ntp and chrony are absent
+  apt: name={{ item }} state=absent purge=yes
+  with_items:
+    - ntp
+    - chrony
+
 - name: ensure systemd NTP client is enabled
   shell: "timedatectl | grep 'NTP enabled: yes' || timedatectl set-ntp 1"
   register: ntp_shell_result