blob: 72a0b6557ba8f912d2fbda3f3ff01cf5fe74ecc8 (
plain) (
tree)
|
|
---
- name: Setting locales to be generated
debconf:
name: locales
question: locales/locales_to_be_generated
value: "{{ locale.generated|join(', ') }}"
vtype: multiselect
register: locale_generated
- name: dpkg-reconfigure locales
block:
- template:
dest: '/etc/locale.gen'
src: locale.gen.j2
owner: root
group: root
mode: 0644
- debconf:
name: locales
question: locales/locales_to_be_generated
value: "{{ locale.generated|join(', ') }}"
vtype: multiselect
- command: dpkg-reconfigure -fnoninteractive locales
when: locale_generated is changed
- name: Setting default locale
template:
dest: '/etc/default/locale'
src: locale.j2
owner: root
group: root
mode: 0644
- name: Update locales debconf
debconf:
name: locales
question: locales/default_environment_locale
value: '{{ locale.default.LANG }}'
vtype: select
# vim: set ts=2 sw=2 et:
|