keep old configs on update

update regex
This commit is contained in:
ace
2024-11-03 17:11:51 +03:00
parent eadc48d6e7
commit 3d011226c1
3 changed files with 6 additions and 4 deletions

View File

@ -96,6 +96,7 @@
owner: "{{ pgbouncer_systemd_user }}"
group: "{{ pgbouncer_systemd_group }}"
mode: 0640
backup: yes
notify: "restart pgbouncer"
when: existing_pgcluster is not defined or not existing_pgcluster|bool
tags: pgbouncer_conf, pgbouncer
@ -136,9 +137,10 @@
template:
src: templates/userlist.txt.j2
dest: "{{ pgbouncer_auth_file }}"
owner: postgres
group: postgres
owner: "{{ pgbouncer_systemd_user }}"
group: "{{ pgbouncer_systemd_group }}"
mode: 0640
backup: yes
when: existing_pgcluster is not defined or not existing_pgcluster|bool
tags: pgbouncer