This commit is contained in:
Ruben Blanco 2023-10-27 14:03:38 +02:00
parent c8ea7f45bc
commit 970ec63841
1 changed files with 25 additions and 16 deletions

View File

@ -1,20 +1,29 @@
---
- name: Set the timezone for tzdata package
debconf:
name: tzdata
question: "tzdata/Areas"
vtype: select
value: "Europe" # Replace with the desired region, e.g., "America,Europe.."
- name: Set the timezone using dpkg-reconfigure
expect:
command: dpkg-reconfigure -f noninteractive tzdata
responses:
- "Geographic area:"
- "Europe" # Replace with your desired geographic area
- "Time zone:"
- "Madrid" # Replace with your desired city or timezone
#- name: Set the timezone for tzdata package
# debconf:
# name: tzdata
# question: "tzdata/Areas"
# vtype: select
# value: "Europe" # Replace with the desired region, e.g., "America,Europe.."
# #state: present
#- name: Set the city for tzdata package
# debconf:
# name: tzdata
# question: "tzdata/Zones/Europe"
# vtype: select
# value: "Madrid" # Replace with the desired city/timezone
#state: present
- name: Set the city for tzdata package
debconf:
name: tzdata
question: "tzdata/Zones/Europe"
vtype: select
value: "Madrid" # Replace with the desired city/timezone
#state: present
- name: Run dpkg-reconfigure to apply the timezone changes
command: dpkg-reconfigure -f noninteractive tzdata
#- name: Run dpkg-reconfigure to apply the timezone changes
# command: dpkg-reconfigure -f noninteractive tzdata