2015-05-28 11:32:57 +02:00
|
|
|
---
|
2016-09-30 19:24:21 +02:00
|
|
|
- block:
|
|
|
|
- name: Define the locales to be generated
|
|
|
|
debconf: name=locales question='locales/locales_to_be_generated' value='{{ deb_locales }}' vtype='multiselect'
|
2015-05-28 11:32:57 +02:00
|
|
|
|
2016-09-30 19:24:21 +02:00
|
|
|
- name: Update the locale default
|
|
|
|
debconf: name=locales question='locales/default_environment_locale' value='{{ deb_default_locale }}' vtype='select'
|
2015-05-28 11:32:57 +02:00
|
|
|
|
2016-09-30 19:24:21 +02:00
|
|
|
- name: Generate the locales
|
|
|
|
locale_gen: name={{ item }} state=present
|
|
|
|
with_items: '{{ deb_locales_list }}'
|
2015-05-28 11:32:57 +02:00
|
|
|
|
2016-09-30 19:24:21 +02:00
|
|
|
- name: Set the default locale
|
|
|
|
shell: update-locale LANG={{ deb_default_locale }}
|
|
|
|
|
|
|
|
tags: locale
|