From aae107a28cea42016a49a735ade8817cb5b9ce2c Mon Sep 17 00:00:00 2001 From: Jeff Geerling Date: Mon, 4 Jul 2016 16:46:30 -0500 Subject: Fixes #10: Handle /etc/timezone on Debian. --- tasks/main.yml | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tasks') diff --git a/tasks/main.yml b/tasks/main.yml index 6a58382..b0379a2 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -9,6 +9,14 @@ state: link force: yes +# Debian family OSes also have an /etc/timezone file. +- name: Set timezone in /etc/timezone file. + template: + src: timezone.j2 + dest: /etc/timezone + force: yes + when: ansible_os_family == 'Debian' + - name: Install NTP (RedHat). yum: name=ntp state=installed when: ansible_os_family == 'RedHat' -- cgit v1.2.3