# NOTE(pabelanger): We need to ensure ntpdate service starts on boot for # centos-7. Currently, ntpd explicitly require ntpdate to be running before # the sync process can happen in ntpd. As a result, if ntpdate is not # running, ntpd will start but fail to sync because of DNS is not properly # setup. # # NOTE(ianw): NTP ordering is further broken on other distros too. # The more supported path is probably chrony on RHEL-ish distros. On # others, systemd-timesyncd. Leaving this alone, but centos8 era # should reconsider. - name: Ensure NTP service is running service: name: ntpd enabled: yes state: started - name: Ensure ntpdate service is running service: name: ntpdate enabled: yes - name: Configure yum cron copy: mode: 0644 src: yum/yum-cron.conf dest: /etc/yum/yum-cron.conf - name: Ensure yum cron service is running service: name: yum-cron enabled: yes state: started