feat(base): Automatically regenerate locales
This commit is contained in:
parent
6ca2a5586d
commit
b3a13f112f
1 changed files with 15 additions and 3 deletions
18
guest.yaml
18
guest.yaml
|
@ -1,4 +1,4 @@
|
|||
- name: Void install base system
|
||||
- name: Install void base system
|
||||
hosts: guest
|
||||
become: true
|
||||
vars:
|
||||
|
@ -65,14 +65,15 @@
|
|||
loop: "{{ kernel_list }}"
|
||||
listen: installed-booster
|
||||
|
||||
- name: Void configure system
|
||||
- name: Configure void base system
|
||||
hosts: guest
|
||||
become: true
|
||||
vars:
|
||||
host_name: voider
|
||||
timezone: Europe/Madrid
|
||||
timezone: Europe/Berlin
|
||||
locales_enabled:
|
||||
- en_US.UTF-8 UTF-8
|
||||
|
||||
tasks:
|
||||
- name: Set hostname
|
||||
ansible.builtin.template:
|
||||
|
@ -93,3 +94,14 @@
|
|||
state: present
|
||||
create: true
|
||||
loop: "{{ locales_enabled }}"
|
||||
notify: glibc-locales-changed
|
||||
|
||||
handlers:
|
||||
- name: Regenerate locales
|
||||
ansible.builtin.command:
|
||||
argv:
|
||||
- xbps-reconfigure
|
||||
- -f
|
||||
- libc-locales
|
||||
listen: glibc-locales-changed
|
||||
|
||||
|
|
Loading…
Reference in a new issue