Refs #8025 Update notify triggers in the debconf Ansible module for locales and tzdata to reconfigure packages.
This commit is contained in:
parent
24864f694f
commit
4139e78a9d
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -8,3 +8,4 @@
|
|||
- { question: "tzdata/Areas", value: "Europe" }
|
||||
- { question: "tzdata/Zones/Europe", value: "Madrid" }
|
||||
- { question: "tzdata/Zones/Etc", value: "UTC" }
|
||||
notify: Reconfigure tzdata
|
||||
|
|
Loading…
Reference in New Issue