Refs #8025 tasks from debian-base role tzdata refactor
This commit is contained in:
parent
606548db7e
commit
24864f694f
|
@ -1,8 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
echo 'tzdata tzdata/Areas select Europe' | debconf-set-selections
|
||||
echo 'tzdata tzdata/Zones/Europe select Madrid' | debconf-set-selections
|
||||
echo 'tzdata tzdata/Zones/Etc select UTC' | debconf-set-selections
|
||||
rm /etc/timezone
|
||||
rm /etc/localtime
|
||||
dpkg-reconfigure -f noninteractive tzdata
|
|
@ -1,2 +1,10 @@
|
|||
- name: Configure the time zone
|
||||
script: set-timezone.sh
|
||||
- name: Configure debconf for tzdata
|
||||
debconf:
|
||||
name: tzdata
|
||||
question: "{{ item.question }}"
|
||||
value: "{{ item.value }}"
|
||||
vtype: "string"
|
||||
loop:
|
||||
- { question: "tzdata/Areas", value: "Europe" }
|
||||
- { question: "tzdata/Zones/Europe", value: "Madrid" }
|
||||
- { question: "tzdata/Zones/Etc", value: "UTC" }
|
||||
|
|
Loading…
Reference in New Issue