aboutsummaryrefslogtreecommitdiffstats
path: root/roles/fedora/tasks/timezone.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/fedora/tasks/timezone.yml')
-rw-r--r--roles/fedora/tasks/timezone.yml7
1 files changed, 6 insertions, 1 deletions
diff --git a/roles/fedora/tasks/timezone.yml b/roles/fedora/tasks/timezone.yml
index 90c2344..a917dd4 100644
--- a/roles/fedora/tasks/timezone.yml
+++ b/roles/fedora/tasks/timezone.yml
@@ -1,9 +1,14 @@
---
-- name: Create /etc/localtime
+- 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: