diff options
author | Jeff Geerling <geerlingguy@mac.com> | 2017-07-12 08:19:24 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-12 08:19:24 -0500 |
commit | 6a15884e9a6e05a9616b4c802251ffa3b1bc4d45 (patch) | |
tree | f4689024fe41fad9bed59f3982f127d024b9ed1a | |
parent | 476b758b0806559731f59c065575b6f37ab521d8 (diff) | |
parent | 5779fe3129f52c46cfda076e5ed8cfa4f25f70c4 (diff) | |
download | ntp-6a15884e9a6e05a9616b4c802251ffa3b1bc4d45.tar.gz ntp-6a15884e9a6e05a9616b4c802251ffa3b1bc4d45.tar.bz2 ntp-6a15884e9a6e05a9616b4c802251ffa3b1bc4d45.tar.xz ntp-6a15884e9a6e05a9616b4c802251ffa3b1bc4d45.zip |
Merge pull request #39 from pdreker/master
FreeBSD comes with tzata in the base install, there is no package tzdata
-rw-r--r-- | tasks/main.yml | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/tasks/main.yml b/tasks/main.yml index e88b109..afbf1c2 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -4,11 +4,14 @@ - name: Ensure NTP-related packages are installed. package: - name: "{{ item }}" + name: ntp state: present - with_items: - - ntp - - tzdata + +- name: Ensure tzdata package is installed (Linux). + package: + name: tzdata + state: present + when: ansible_system == "Linux" - include: clock-rhel-6.yml when: ansible_os_family == 'RedHat' and ansible_distribution_version.split('.')[0] == '6' |