summaryrefslogtreecommitdiffstats
path: root/tasks/main.yml
blob: 7ed08ed5cacd25c7dc7d9586205a68a6685fab8d (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/{{ 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