1 2 3 4 5 6 7 8 9 10 11 12 13 14
--- - 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|bool # vim: set ts=2 sw=2 et: