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 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 }}"