Update 'tasks/locale.yml'
Only one command to have both parameters in /etc/default/locale
This commit is contained in:
parent
0a7b083761
commit
c4e5d7262c
|
@ -19,10 +19,7 @@
|
||||||
register: localectl_executable
|
register: localectl_executable
|
||||||
|
|
||||||
- name: Set the default locale
|
- name: Set the default locale
|
||||||
command: localectl set-locale "{{ item }}"
|
command: localectl set-locale 'LANG={{ default_locale_lang }}' 'LC_MESSAGES={{ default_deb_locale_messages }}'
|
||||||
with_items:
|
|
||||||
- 'LANG={{ default_locale_lang }}'
|
|
||||||
- 'LC_MESSAGES={{ default_deb_locale_messages }}'
|
|
||||||
when:
|
when:
|
||||||
- localectl_executable.stat.exists | bool
|
- localectl_executable.stat.exists | bool
|
||||||
- ansible_distribution_file_variety == "Debian"
|
- ansible_distribution_file_variety == "Debian"
|
||||||
|
|
Loading…
Reference in New Issue