From 305403fc33b34d86c655a1ccb08c3a0542e903c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Sachse?= <joerg.sachse@slub-dresden.de> Date: Fri, 6 Sep 2024 15:50:23 +0200 Subject: [PATCH] feat: discard any traces of NTP configs --- tasks/migrate_ntpd_to_esxi_timesync.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/tasks/migrate_ntpd_to_esxi_timesync.yml b/tasks/migrate_ntpd_to_esxi_timesync.yml index b8e00f5..5e6237d 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" -- GitLab