system-config/playbooks/roles/base/server/tasks/RedHat.yaml
Monty Taylor e8716e742e Move base roles into a base subdir
If we move these into a subdir, it cleans up the number of things
we nave to files match on.

Stop running disable-puppet-agent in base. We run it in run-puppet
which should be fine.

Change-Id: Ia16adb96b11d25a097490882c4c59a50a0b7b23d
2020-05-27 16:28:37 -05:00

33 lines
941 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.
#
# 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