summaryrefslogtreecommitdiffstats
path: root/vagrant_support/timezone.yml
diff options
context:
space:
mode:
Diffstat (limited to 'vagrant_support/timezone.yml')
-rw-r--r--vagrant_support/timezone.yml18
1 files changed, 18 insertions, 0 deletions
diff --git a/vagrant_support/timezone.yml b/vagrant_support/timezone.yml
new file mode 100644
index 000000000..f0e1b5f26
--- /dev/null
+++ b/vagrant_support/timezone.yml
@@ -0,0 +1,18 @@
+---
+
+- name: check for non-link localtime
+ stat: path=/etc/localtime
+ register: localtime
+
+- name: remove localtime
+ file:
+ path: /etc/localtime
+ state: absent
+ when: localtime.stat.islnk is defined and localtime.stat.islnk == False
+
+- name: set timezone to same as production
+ file:
+ path: /etc/localtime
+ src: /usr/share/zoneinfo/America/Los_Angeles
+ force: true
+ state: link