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:
|
service:
|
||||||
name: nagios-nrpe-server
|
name: nagios-nrpe-server
|
||||||
state: restarted
|
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:
|
debconf:
|
||||||
name: locales
|
name: locales
|
||||||
question: locales/locales_to_be_generated
|
question: "{{ item.question }}"
|
||||||
value: en_US.UTF-8 UTF-8, es_ES.UTF-8 UTF-8
|
value: "{{ item.value }}"
|
||||||
vtype: multiselect
|
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/Areas", value: "Europe" }
|
||||||
- { question: "tzdata/Zones/Europe", value: "Madrid" }
|
- { question: "tzdata/Zones/Europe", value: "Madrid" }
|
||||||
- { question: "tzdata/Zones/Etc", value: "UTC" }
|
- { question: "tzdata/Zones/Etc", value: "UTC" }
|
||||||
|
notify: Reconfigure tzdata
|
||||||
|
|
Loading…
Reference in New Issue