aboutsummaryrefslogtreecommitdiff
path: root/ansible/roles/timezone
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2018-02-25 10:16:37 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2018-02-25 10:16:37 +0100
commitab1d1e236a410e07a8a6109a6f4f26d27e413903 (patch)
treec0e099a3277bbfb9b9266a8375e2c158134d440e /ansible/roles/timezone
parentff8685267b46e18828967790f772f30e19275e7e (diff)
downloadinfra-ab1d1e236a410e07a8a6109a6f4f26d27e413903.tar.gz
infra-ab1d1e236a410e07a8a6109a6f4f26d27e413903.tar.bz2
infra-ab1d1e236a410e07a8a6109a6f4f26d27e413903.tar.xz
infra-ab1d1e236a410e07a8a6109a6f4f26d27e413903.zip
wip
Diffstat (limited to 'ansible/roles/timezone')
-rw-r--r--ansible/roles/timezone/handlers/main.yml5
-rw-r--r--ansible/roles/timezone/tasks/main.yml9
2 files changed, 14 insertions, 0 deletions
diff --git a/ansible/roles/timezone/handlers/main.yml b/ansible/roles/timezone/handlers/main.yml
new file mode 100644
index 0000000..0bd7c0d
--- /dev/null
+++ b/ansible/roles/timezone/handlers/main.yml
@@ -0,0 +1,5 @@
+---
+- name: reconfigure tzdata
+ shell: dpkg-reconfigure -f noninteractive tzdata
+
+
diff --git a/ansible/roles/timezone/tasks/main.yml b/ansible/roles/timezone/tasks/main.yml
new file mode 100644
index 0000000..e60de32
--- /dev/null
+++ b/ansible/roles/timezone/tasks/main.yml
@@ -0,0 +1,9 @@
+---
+- tags:
+ - timezone
+ block:
+ - file:
+ src: /usr/share/zoneinfo/Europe/Oslo
+ dest: /etc/localtime
+ state: link
+ notify: reconfigure tzdata