Refs #8025 debian base rol - more locales and group vars

This commit is contained in:
Xavi Lleó 2024-10-07 16:41:41 +02:00
parent 7ec58a2f89
commit 32fa5102ce
2 changed files with 8 additions and 9 deletions

View File

@ -30,3 +30,6 @@ base_packages:
- btop - btop
- ncdu - ncdu
- debconf-utils - debconf-utils
locales_present:
- en_US.UTF-8
- es_ES.UTF-8

View File

@ -1,10 +1,6 @@
- name: Configure debconf for locales - name: make sure locales in variable are generated
debconf: locale_gen:
name: locales name: "{{ item }}"
question: "{{ item.question }}" state: present
value: "{{ item.value }}" with_items: "{{ locales_present }}"
vtype: "{{ item.vtype }}"
loop:
- { question: "locales/locales_to_be_generated", value: "en_US.UTF-8 UTF-8, es_ES.UTF-8 UTF-8", vtype: "multiselect" }
- { question: "locales/default_environment_locales", value: "en_US.UTF-8", vtype: "string" }
notify: generate locales notify: generate locales