Commit ec7b057c authored by cetus root's avatar cetus root

correctly set up locales

parent fbd520ad
- name: regenerate locales
command: /usr/sbin/locale-gen
---
- include: localization.yml
# localization
- name: make sure timezone is Europe/Berlin
timezone:
name: Europe/Berlin
- name: add default locale en_US.UTF-8 to debconf
debconf:
name: locales
question: locales/default_environment_locale
value: en_US.UTF-8
vtype: select
- name: add de_DE.UTF-8 and en_US.UTF-8 to debconf
debconf:
name: locales
question: locales/locales_to_be_generated
value: en_US.UTF-8 UTF-8, de_DE.UTF-8 UTF-8
vtype: multiselect
- name: make sure de_DE.UTF-8 and en_US.UTF-8 locales are available
lineinfile:
dest: /etc/locale.gen
regexp: "^#? ?{{ item.locale }}"
line: "{{ item.locale }}"
state: present
with_items:
- { locale: 'de_DE.UTF-8 UTF-8' }
- { locale: 'en_US.UTF-8 UTF-8' }
notify:
- regenerate locales
# run handlers
- meta: flush_handlers
......@@ -9,3 +9,4 @@
- include: journalalert.yml
- include: systemd.yml
- include: intel_rapl.yml
- include: localization.yml
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment