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 2021-12-28 14:57:25 -05:00
parent d859e032be
commit 4b6fdf301f
3 changed files with 4 additions and 8 deletions

View File

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

View File

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

View File

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