summaryrefslogtreecommitdiffstats
path: root/roles/timezone/tasks/main.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/timezone/tasks/main.yaml')
-rw-r--r--roles/timezone/tasks/main.yaml4
1 files changed, 4 insertions, 0 deletions
diff --git a/roles/timezone/tasks/main.yaml b/roles/timezone/tasks/main.yaml
new file mode 100644
index 000000000..339b4e0b2
--- /dev/null
+++ b/roles/timezone/tasks/main.yaml
@@ -0,0 +1,4 @@
+---
+- name: Setup correct timezone
+ command: timedatectl set-timezone America/New_York
+ when: ansible_os_family == "RedHat" and ansible_lsb.major_release|int >= 7