From 09fda3d1e8010761d1070f6f90d8715750ab8bc3 Mon Sep 17 00:00:00 2001 From: Emil Renner Berthing Date: Sat, 6 Oct 2018 22:56:04 +0200 Subject: debian: timezone: just create symlink in chroot --- roles/debian/tasks/timezone.yml | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'roles/debian') 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: -- cgit v1.2.1