From 2df419d71028a4f699a98d897439b89e15f4e72a Mon Sep 17 00:00:00 2001 From: Emil Renner Berthing Date: Sat, 6 Oct 2018 22:56:32 +0200 Subject: fedora: align with debian role --- roles/fedora/tasks/timezone.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'roles/fedora/tasks/timezone.yml') 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: -- cgit v1.2.1