blob: 72a0b6557ba8f912d2fbda3f3ff01cf5fe74ecc8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
---
- 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:
|