aboutsummaryrefslogtreecommitdiffstats
path: root/roles/debian
diff options
context:
space:
mode:
Diffstat (limited to 'roles/debian')
-rw-r--r--roles/debian/tasks/timezone.yml8
1 files changed, 8 insertions, 0 deletions
diff --git a/roles/debian/tasks/timezone.yml b/roles/debian/tasks/timezone.yml
index 28f31eb..a917dd4 100644
--- a/roles/debian/tasks/timezone.yml
+++ b/roles/debian/tasks/timezone.yml
@@ -2,5 +2,13 @@
- name: Configure timezone
timezone:
name: '{{ timezone }}'
+ when: not chroot
+- name: '- when in chroot'
+ file:
+ path: '/etc/localtime'
+ src: '../usr/share/zoneinfo/{{ timezone }}'
+ state: link
+ force: yes
+ when: chroot
# vim: set ts=2 sw=2 et: