diff options
author | Jeff Geerling <geerlingguy@mac.com> | 2014-03-05 09:48:33 -0600 |
---|---|---|
committer | Jeff Geerling <geerlingguy@mac.com> | 2014-03-05 09:48:33 -0600 |
commit | 2019c99574319713667ed001a24e6f26d686980a (patch) | |
tree | 4b9dac1201b144bee992f4ccfd69cf2a2528d2f5 /tasks/main.yml | |
download | ntp-2019c99574319713667ed001a24e6f26d686980a.tar.gz ntp-2019c99574319713667ed001a24e6f26d686980a.tar.bz2 ntp-2019c99574319713667ed001a24e6f26d686980a.tar.xz ntp-2019c99574319713667ed001a24e6f26d686980a.zip |
Initial commit.
Diffstat (limited to 'tasks/main.yml')
-rw-r--r-- | tasks/main.yml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tasks/main.yml b/tasks/main.yml new file mode 100644 index 0000000..7ed08ed --- /dev/null +++ b/tasks/main.yml @@ -0,0 +1,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 |