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:
parent
d859e032be
commit
4b6fdf301f
|
@ -29,9 +29,6 @@
|
|||
name: fail2ban
|
||||
state: restarted
|
||||
|
||||
- name: generate locales
|
||||
command: locale-gen
|
||||
|
||||
- name: newaliases
|
||||
command: newaliases
|
||||
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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 }}"
|
||||
|
|
Loading…
Reference in New Issue