diff options
-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 }}" |