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 | |
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.
-rw-r--r-- | .travis.yml | 2 | ||||
-rw-r--r-- | tasks/main.yml | 13 |
2 files changed, 9 insertions, 6 deletions
diff --git a/.travis.yml b/.travis.yml index 6eb20a4..563f83c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,7 +8,7 @@ env: - distro: ubuntu1404 - distro: ubuntu1204 - distro: fedora24 - # - distro: debian8 + - distro: debian8 script: # Download test shim. 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 }}" |