aboutsummaryrefslogtreecommitdiffstats
path: root/roles/debian/tasks
diff options
context:
space:
mode:
authorEmil Renner Berthing <esmil@labitat.dk>2018-10-06 22:56:04 +0200
committerEmil Renner Berthing <esmil@labitat.dk>2018-10-07 14:29:32 +0200
commit09fda3d1e8010761d1070f6f90d8715750ab8bc3 (patch)
tree1b305f8428c06f40a0db8a5379e171fd51504358 /roles/debian/tasks
parent812b86451fad7e116bd78ab635e4a04c1422c51c (diff)
downloadlabitat-ansible-09fda3d1e8010761d1070f6f90d8715750ab8bc3.tar.gz
labitat-ansible-09fda3d1e8010761d1070f6f90d8715750ab8bc3.tar.xz
labitat-ansible-09fda3d1e8010761d1070f6f90d8715750ab8bc3.zip
debian: timezone: just create symlink in chroot
Diffstat (limited to 'roles/debian/tasks')
-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: