Fix locales

Improve re-reading of facts after custom fact
This commit is contained in:
waal70
2025-09-01 16:30:14 +02:00
parent bb01fa020f
commit f606b8573d
4 changed files with 16 additions and 3 deletions

View File

@@ -12,7 +12,9 @@
owner: "{{ ansible_user_id }}"
group: "{{ ansible_user_id }}"
mode: "0777"
register: cpu_fact
- name: Re-read facts after adding custom fact
- name: Re-read facts if custom fact was installed this run # noqa: no-handler
ansible.builtin.setup:
filter: ansible_local
when: cpu_fact is changed

View File

@@ -17,3 +17,5 @@
regexp: "{{ ansible_host }}.*{{ inventory_hostname }}"
line: "{{ ansible_host }} {{ inventory_hostname }}"
state: present
vars:
ansible_remote_tmp: /tmp # Prevent warnings for auto-created tmp dir

View File

@@ -5,10 +5,12 @@
question: locales/default_environment_locale
value: en_US.UTF-8
vtype: select
notify: Reconfigure locales
- name: Set to generate locales
- name: Generate required locales
ansible.builtin.debconf:
name: locales
question: locales/locales_to_be_generated
value: en_US.UTF-8 UTF-8
value: en_US.UTF-8 UTF-8, nl_NL.UTF-8 UTF-8, en_GB.UTF-8 UTF-8
vtype: multiselect
notify: Reconfigure locales