2024-09-23 12:30:38 +00:00
|
|
|
- name: Enable locale languages
|
|
|
|
lineinfile:
|
2024-09-24 11:04:59 +00:00
|
|
|
dest: /etc/locale.gen
|
2024-09-23 12:30:38 +00:00
|
|
|
regexp: "{{item.regexp}}"
|
|
|
|
line: "{{item.line}}"
|
|
|
|
state: present
|
|
|
|
with_items:
|
|
|
|
- regexp: "^# es_ES.UTF-8 UTF-8"
|
|
|
|
line: "es_ES.UTF-8 UTF-8"
|
|
|
|
- regexp: "^# en_US.UTF-8 UTF-8"
|
|
|
|
line: "en_US.UTF-8 UTF-8"
|
|
|
|
- name: Generate locale
|
|
|
|
command: locale-gen
|
|
|
|
- name: Update locale
|
|
|
|
command: update-locale LANG=en_US.UTF-8
|