Refs #8025 tasks from debian-base role tzdata refactor

This commit is contained in:
Xavi Lleó 2024-10-07 12:35:23 +02:00
parent 606548db7e
commit 24864f694f
2 changed files with 10 additions and 10 deletions

View File

@ -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

View File

@ -1,2 +1,10 @@
- name: Configure the time zone - name: Configure debconf for tzdata
script: set-timezone.sh 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" }