Add timezone setting support.

This commit is contained in:
David Putzolu
2020-05-22 11:28:14 -07:00
parent 930f1b5586
commit 07eca0143c
3 changed files with 16 additions and 1 deletions

View File

@@ -0,0 +1,4 @@
- name: restart cron
service:
name: cron
state: restarted

View File

@@ -50,3 +50,9 @@
path: /etc/sudoers
validate: 'visudo -cf %s'
when: ansible_distribution in ['CentOS', 'Red Hat Enterprise Linux']
- name: "set timezone to {{ timezone }}"
timezone:
name: "{{ timezone }}"
notify: restart cron
when: timezone is defined