diff options
author | Jeff Geerling <geerlingguy@mac.com> | 2017-06-11 14:45:59 -0500 |
---|---|---|
committer | Jeff Geerling <geerlingguy@mac.com> | 2017-06-11 14:45:59 -0500 |
commit | 86b8f5a1028386665c2c43bff2962b8ea476be78 (patch) | |
tree | baa33b7b10d47e55623db5a482279cc09f4779a6 /tasks | |
parent | 30c2fe465f60f790db28eb5cca7f56ee2b3c00ec (diff) | |
download | ntp-86b8f5a1028386665c2c43bff2962b8ea476be78.tar.gz ntp-86b8f5a1028386665c2c43bff2962b8ea476be78.tar.bz2 ntp-86b8f5a1028386665c2c43bff2962b8ea476be78.tar.xz ntp-86b8f5a1028386665c2c43bff2962b8ea476be78.zip |
Fixes #33: Install tzdata alongside ntp so timezone data is present.
Diffstat (limited to 'tasks')
-rw-r--r-- | tasks/main.yml | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/tasks/main.yml b/tasks/main.yml index 8a14050..a022447 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -2,15 +2,18 @@ - name: Include OS-specific variables. include_vars: "{{ ansible_os_family }}.yml" +- name: Ensure NTP-related packages are installed. + package: + name: "{{ item }}" + state: present + with_items: + - ntp + - tzdata + - name: Set timezone timezone: name: "{{ ntp_timezone }}" -- name: Install NTP. - package: - name: ntp - state: present - - name: Ensure NTP is running and enabled as configured. service: name: "{{ ntp_daemon }}" |