Skip to content

Commit

Permalink
Enable locale before generating
Browse files Browse the repository at this point in the history
  • Loading branch information
IamLunchbox committed Jun 6, 2024
1 parent 8c9bef9 commit f0c8064
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion ansible/roles/base/tasks/environment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,15 @@
- locales
state: present

- name: Set locale file
ansible.builtin.lineinfile:
owner: root
group: root
mode: '0644'
path: /etc/locale.gen
regexp: '^(# de_DE.UTF-8 UTF-8)'
line: "de_DE.UTF-8 UTF-8"

- name: Ensure localisation files for {{ config_system_locale }}
community.general.locale_gen:
name: "{{ config_system_locale }}"
Expand Down Expand Up @@ -53,7 +62,7 @@
# this always sets up the sub-locales until i find a better workaround
- name: Set custom locales
ansible.builtin.command: >
update-locale "{{ locale_type.type }}"="{{ locale_type.lang }}"
update-locale {{ locale_type.type }}={{ locale_type.lang }}
loop: "{{ locale_settings }}"
loop_control:
loop_var: locale_type
Expand Down

0 comments on commit f0c8064

Please sign in to comment.