summaryrefslogtreecommitdiffstats
path: root/tasks/main.yml
blob: 11211c279a694d5bd6657abfd6d99ce2419680a7 (plain)
1
2
3
4
5
6
7
8
9
10
---
# Date and timezone (NTP).
- name: Set the correct timezone.
  file: src=/usr/share/zoneinfo/{{ ntp_timezone }}  dest=/etc/localtime state=link force=yes

- name: Install NTP.
  yum: name=ntp state=installed

- name: Ensure NTP is running.
  service: name=ntpd state=started enabled=yes