diff options
author | Jeff Geerling <geerlingguy@mac.com> | 2016-07-04 16:46:30 -0500 |
---|---|---|
committer | Jeff Geerling <geerlingguy@mac.com> | 2016-07-04 16:46:30 -0500 |
commit | aae107a28cea42016a49a735ade8817cb5b9ce2c (patch) | |
tree | 8194159df92c4fc21a4f42e65fa8759847b30c4e /tasks | |
parent | c9160966d7b95918aefe7fc2cfcd51491d56f4ff (diff) | |
download | ntp-aae107a28cea42016a49a735ade8817cb5b9ce2c.tar.gz ntp-aae107a28cea42016a49a735ade8817cb5b9ce2c.tar.bz2 ntp-aae107a28cea42016a49a735ade8817cb5b9ce2c.tar.xz ntp-aae107a28cea42016a49a735ade8817cb5b9ce2c.zip |
Fixes #10: Handle /etc/timezone on Debian.
Diffstat (limited to 'tasks')
-rw-r--r-- | tasks/main.yml | 8 |
1 files changed, 8 insertions, 0 deletions
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' |