From 5779fe3129f52c46cfda076e5ed8cfa4f25f70c4 Mon Sep 17 00:00:00 2001 From: Patrick Dreker Date: Wed, 12 Jul 2017 13:06:58 +0200 Subject: FreeBSD comes with tzata in the base install, there is no package for this. So make the installation of tzdata dependent on Linux. --- tasks/main.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'tasks/main.yml') 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' -- cgit v1.2.3