diff --git a/tasks/migrate_ntpd_to_esxi_timesync.yml b/tasks/migrate_ntpd_to_esxi_timesync.yml index b8e00f5bb581aba24e75a3d740be4d5d01513d60..5e6237ddd821f1d99fbbdf8e925fc2e64b7aad0d 100644 --- a/tasks/migrate_ntpd_to_esxi_timesync.yml +++ b/tasks/migrate_ntpd_to_esxi_timesync.yml @@ -8,7 +8,17 @@ state: absent purge: "{{ true if ansible_os_family == 'Debian' else omit }}" -# details can be found at sdvuda10 project, issue #2 +- name: purge NTP configuration + ansible.builtin.file: + path: "{{ item }}" + state: absent + loop: + - "/etc/cron.daily/ntp" + - "/etc/ntp.conf" + - "/etc/ntpsec/ntp.conf" + +# details can be found at sdvgubs10 project, issue #2 +# https://git.slub-dresden.de/slub-referat-2-4/sdvgubs10 - name: make sure open-vm-tools are installed ansible.builtin.package: name: "open-vm-tools"