summaryrefslogtreecommitdiffstats
path: root/tasks
diff options
context:
space:
mode:
authorPatrick Dreker <pd@teamix.de>2017-07-12 13:06:58 +0200
committerPatrick Dreker <pd@teamix.de>2017-07-12 13:06:58 +0200
commit5779fe3129f52c46cfda076e5ed8cfa4f25f70c4 (patch)
treef4689024fe41fad9bed59f3982f127d024b9ed1a /tasks
parent476b758b0806559731f59c065575b6f37ab521d8 (diff)
downloadntp-5779fe3129f52c46cfda076e5ed8cfa4f25f70c4.tar.gz
ntp-5779fe3129f52c46cfda076e5ed8cfa4f25f70c4.tar.bz2
ntp-5779fe3129f52c46cfda076e5ed8cfa4f25f70c4.tar.xz
ntp-5779fe3129f52c46cfda076e5ed8cfa4f25f70c4.zip
FreeBSD comes with tzata in the base install, there is no package for this. So make the installation of tzdata dependent on Linux.
Diffstat (limited to 'tasks')
-rw-r--r--tasks/main.yml11
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'