Refs #8025 Update notify triggers in the debconf Ansible module for locales and tzdata to reconfigure packages.

This commit is contained in:
Xavi Lleó 2024-10-07 13:10:30 +02:00
parent 24864f694f
commit 4139e78a9d
3 changed files with 13 additions and 4 deletions

View File

@ -18,3 +18,7 @@
service:
name: nagios-nrpe-server
state: restarted
- name: Generate locales
command: /usr/sbin/locale-gen
- name: Reconfigure tzdata
command: dpkg-reconfigure -f noninteractive tzdata

View File

@ -1,6 +1,10 @@
- name: Set to generate locales
- name: Configure debconf for locales
debconf:
name: locales
question: locales/locales_to_be_generated
value: en_US.UTF-8 UTF-8, es_ES.UTF-8 UTF-8
vtype: multiselect
question: "{{ item.question }}"
value: "{{ item.value }}"
vtype: "{{ item.vtype }}"
loop:
- { question: "locales/locales_to_be_generated", value: "en_US.UTF-8 UTF-8, es_ES.UTF-8 UTF-8", vtype: "multiselect" }
- { question: "locales/default_environment_locales", value: "en_US.UTF-8", vtype: "string" }
notify: Generate locales

View File

@ -8,3 +8,4 @@
- { question: "tzdata/Areas", value: "Europe" }
- { question: "tzdata/Zones/Europe", value: "Madrid" }
- { question: "tzdata/Zones/Etc", value: "UTC" }
notify: Reconfigure tzdata