From 2019c99574319713667ed001a24e6f26d686980a Mon Sep 17 00:00:00 2001 From: Jeff Geerling Date: Wed, 5 Mar 2014 09:48:33 -0600 Subject: Initial commit. --- README.md | 9 +++++++++ tasks/main.yml | 10 ++++++++++ vars/main.yml | 2 ++ 3 files changed, 21 insertions(+) create mode 100644 README.md create mode 100644 tasks/main.yml create mode 100644 vars/main.yml diff --git a/README.md b/README.md new file mode 100644 index 0000000..2c9116b --- /dev/null +++ b/README.md @@ -0,0 +1,9 @@ +# NTP Ansible Role + +## An Ansible Role by Jeff Geerling + +This Ansible role was created by Jeff Geerling, and will be added to [his GitHub profile](https://github.com/geerlingguy) after more refinement. + +**Please don't make any changes to this role unless they've also been made to the originals.** + +This README.md file will be removed once the roles are adapted to the final versions posted to GitHub. 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 diff --git a/vars/main.yml b/vars/main.yml new file mode 100644 index 0000000..424c7ec --- /dev/null +++ b/vars/main.yml @@ -0,0 +1,2 @@ +--- +ntp_timezone: America/Chicago \ No newline at end of file -- cgit v1.2.3