2023-10-27 11:45:02 +00:00
|
|
|
---
|
|
|
|
|
2023-10-27 12:03:38 +00:00
|
|
|
- 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
|
2023-10-27 11:45:02 +00:00
|
|
|
|
2023-10-27 12:03:38 +00:00
|
|
|
#- name: Set the city for tzdata package
|
|
|
|
# debconf:
|
|
|
|
# name: tzdata
|
|
|
|
# question: "tzdata/Zones/Europe"
|
|
|
|
# vtype: select
|
|
|
|
# value: "Madrid" # Replace with the desired city/timezone
|
2023-10-27 11:55:35 +00:00
|
|
|
#state: present
|
2023-10-27 11:45:02 +00:00
|
|
|
|
2023-10-27 12:03:38 +00:00
|
|
|
#- name: Run dpkg-reconfigure to apply the timezone changes
|
|
|
|
# command: dpkg-reconfigure -f noninteractive tzdata
|