|
|
@ -1,13 +1,14 @@ |
|
|
|
- name: LOCALE | build locales |
|
|
|
- name: LOCALE | configure locales |
|
|
|
lineinfile: |
|
|
|
path: /etc/locale.gen |
|
|
|
regexp: '#\s*{{item}}' |
|
|
|
line: '{{item}}' |
|
|
|
regexp: '#\s*({{item | regex_escape()}}[\s\w]*)' |
|
|
|
line: '\1' |
|
|
|
backrefs: yes |
|
|
|
state: present |
|
|
|
with_items: "{{locales}}" |
|
|
|
notify: locale-gen |
|
|
|
|
|
|
|
- name: LOCALE | generate locales |
|
|
|
shell: locale-gen |
|
|
|
|
|
|
|
- name: LOCALE | set default locale |
|
|
|
template: |
|
|
|
src: etc/default/locale.j2 |
|
|
|
dest: /etc/default/locale |
|
|
|
shell: update-locale LANG={{default_locale}} |