diff --git a/tasks/configure_ntp.yml b/tasks/configure_ntp.yml index f344ec8e1ca01ebf13d03d5e31cfaebd48926234..43c15d8c7dc140073ec7efe916bbbb5401cfee58 100644 --- a/tasks/configure_ntp.yml +++ b/tasks/configure_ntp.yml @@ -1,6 +1,8 @@ --- -# copy module modifies parent directory permissions, when file or directory is copied with owner and group different than root. It is also not idempotent and changes on subsequent runs. - name: configure NTP ansible.builtin.file: - path: "/etc/ntp.conf" + path: "{{ item }}" state: absent + loop: + - "/etc/cron.daily/ntp" + - "/etc/ntp.conf"