aboutsummaryrefslogtreecommitdiff
path: root/terraform/ansible/roles
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2019-07-24 21:14:15 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2019-07-24 21:14:15 +0200
commitc8b5bca6c72dfeea631202250bcffa3cc7069d22 (patch)
tree58e83eccd338d0e80fe0538b9a2fbc22b0afef19 /terraform/ansible/roles
parent029ffa806227656bb77393a2626aab84f055b06b (diff)
downloadk8s-sandbox-c8b5bca6c72dfeea631202250bcffa3cc7069d22.tar.gz
k8s-sandbox-c8b5bca6c72dfeea631202250bcffa3cc7069d22.tar.bz2
k8s-sandbox-c8b5bca6c72dfeea631202250bcffa3cc7069d22.tar.xz
k8s-sandbox-c8b5bca6c72dfeea631202250bcffa3cc7069d22.zip
wip
Diffstat (limited to 'terraform/ansible/roles')
-rw-r--r--terraform/ansible/roles/timezone/handlers/main.yml2
-rw-r--r--terraform/ansible/roles/timezone/tasks/main.yml8
2 files changed, 10 insertions, 0 deletions
diff --git a/terraform/ansible/roles/timezone/handlers/main.yml b/terraform/ansible/roles/timezone/handlers/main.yml
new file mode 100644
index 0000000..8260d66
--- /dev/null
+++ b/terraform/ansible/roles/timezone/handlers/main.yml
@@ -0,0 +1,2 @@
+- name: reconfigure tzdata
+ shell: dpkg-reconfigure -f noninteractive tzdata
diff --git a/terraform/ansible/roles/timezone/tasks/main.yml b/terraform/ansible/roles/timezone/tasks/main.yml
new file mode 100644
index 0000000..2bb82c5
--- /dev/null
+++ b/terraform/ansible/roles/timezone/tasks/main.yml
@@ -0,0 +1,8 @@
+- tags:
+ - timezone
+ file:
+ src: "/usr/share/zoneinfo/{{ timezone }}"
+ dest: /etc/localtime
+ state: link
+ force: yes
+ notify: reconfigure tzdata