Make locale generation universal

Don't rely on a notify/handler, just do it every time in the base role.
This commit is contained in:
Joshua Boniface 2023-09-01 15:42:28 -04:00
parent 91ca3d1510
commit aa6b4ac3dc
3 changed files with 4 additions and 8 deletions

View File

@ -29,9 +29,6 @@
name: fail2ban name: fail2ban
state: restarted state: restarted
- name: generate locales
command: locale-gen
- name: newaliases - name: newaliases
command: newaliases command: newaliases

View File

@ -300,8 +300,6 @@
template: template:
src: "{{ item.src }}" src: "{{ item.src }}"
dest: "{{ item.dest }}" dest: "{{ item.dest }}"
notify:
- generate locales
with_items: with_items:
- { src: "etc/default/locale.j2", dest: "/etc/default/locale" } - { src: "etc/default/locale.j2", dest: "/etc/default/locale" }
- { src: "etc/locale.gen.j2", dest: "/etc/locale.gen" } - { src: "etc/locale.gen.j2", dest: "/etc/locale.gen" }
@ -315,6 +313,10 @@
force: yes force: yes
tags: base-system tags: base-system
- name: generate locales
command: locale-gen
tags: base-system
# sysctl # sysctl
- name: install sysctl tweaks - name: install sysctl tweaks
template: template:

View File

@ -11,9 +11,6 @@
shell: "/usr/share/zookeeper/bin/zkCli.sh -server $(hostname -s):2181 rmr /patroni" shell: "/usr/share/zookeeper/bin/zkCli.sh -server $(hostname -s):2181 rmr /patroni"
ignore_errors: true ignore_errors: true
- name: regenerate locales to ensure compliance
command: locale-gen
- name: start Patroni - name: start Patroni
service: service:
name: "{{ item }}" name: "{{ item }}"