system-config/playbooks/roles/base-server/tasks/RedHat.yaml

23 lines
633 B
YAML

# 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.
- name: Ensure ntpdate service is running
service:
name: ntpdate
enabled: yes
state: running
- 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: running