Improve locale configuration
parent
1529ac5ef5
commit
427b7ecac8
|
@ -0,0 +1,20 @@
|
|||
---
|
||||
|
||||
system_locales:
|
||||
- "{{ system_locale_lang }}"
|
||||
|
||||
system_locale_lang: en_US.UTF-8
|
||||
|
||||
system_locale_ctype: "{{ system_locale_lang }}"
|
||||
system_locale_numeric: "{{ system_locale_lang }}"
|
||||
system_locale_time: "{{ system_locale_lang }}"
|
||||
system_locale_collate: "{{ system_locale_lang }}"
|
||||
system_locale_monetary: "{{ system_locale_lang }}"
|
||||
system_locale_messages: "{{ system_locale_lang }}"
|
||||
system_locale_paper: "{{ system_locale_lang }}"
|
||||
system_locale_name: "{{ system_locale_lang }}"
|
||||
system_locale_address: "{{ system_locale_lang }}"
|
||||
system_locale_telephone: "{{ system_locale_lang }}"
|
||||
system_locale_measurement: "{{ system_locale_lang }}"
|
||||
system_locale_identification: "{{ system_locale_lang }}"
|
||||
system_locale_all: ""
|
|
@ -1,4 +1,4 @@
|
|||
---
|
||||
|
||||
- name: System | Generate locales
|
||||
shell: locale-gen
|
||||
- name: Common | Generate locales
|
||||
command: locale-gen
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
mode: 0644
|
||||
owner: root
|
||||
group: root
|
||||
notify: System | Generate locales
|
||||
notify: Common | Generate locales
|
||||
|
||||
- name: Common | Set system locale
|
||||
template:
|
||||
|
|
|
@ -1,2 +1,15 @@
|
|||
# {{ ansible_managed }}
|
||||
LANG={{ use_system_locale }}
|
||||
LANG="{{ system_locale_lang }}"
|
||||
LC_CTYPE="{{ system_locale_ctype }}"
|
||||
LC_NUMERIC="{{ system_locale_numeric }}"
|
||||
LC_TIME="{{ system_locale_time }}"
|
||||
LC_COLLATE="{{ system_locale_collate }}"
|
||||
LC_MONETARY="{{ system_locale_monetary }}"
|
||||
LC_MESSAGES="{{ system_locale_messages }}"
|
||||
LC_PAPER="{{ system_locale_paper }}"
|
||||
LC_NAME="{{ system_locale_name }}"
|
||||
LC_ADDRESS="{{ system_locale_address }}"
|
||||
LC_TELEPHONE="{{ system_locale_telephone }}"
|
||||
LC_MEASUREMENT="{{ system_locale_measurement }}"
|
||||
LC_IDENTIFICATION="{{ system_locale_identification }}"
|
||||
LC_ALL="{{ system_locale_all }}"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# {{ ansible_managed }}
|
||||
{% for item in system_locales | default([]) %}
|
||||
{% for item in system_locales %}
|
||||
{{ item }}
|
||||
{% endfor %}
|
||||
|
|
Loading…
Reference in New Issue