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
Signed by: ace
GPG Key ID: 2C08973DD37A76FD
3 changed files with 6 additions and 4 deletions

View File

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

View File

@ -5,4 +5,4 @@ pgbouncer_postgresql_data_dir: "{{ pgbouncer_postgresql_home_dir }}/{{ pgbouncer
pgbouncer_postgresql_ssl_path: "{{ pgbouncer_postgresql_config_dir }}/{{ pgbouncer_postgresql_major_version }}/{{ pgbouncer_postgresql_cluster_name }}" pgbouncer_postgresql_ssl_path: "{{ pgbouncer_postgresql_config_dir }}/{{ pgbouncer_postgresql_major_version }}/{{ pgbouncer_postgresql_cluster_name }}"
pgbouncer_postgresql_cluster_name: "main" pgbouncer_postgresql_cluster_name: "main"
pgbouncer_postgresql_package_name_regex: 'postgresql-.[{{ pgbouncer_postgresql_supported_versions | join(",") }}]' pgbouncer_postgresql_package_name_regex: 'postgres.*[{{ pgbouncer_postgresql_supported_versions | join(",") }}]'

View File

@ -5,4 +5,4 @@ pgbouncer_postgresql_config_dir: "{{ pgbouncer_postgresql_data_dir }}"
pgbouncer_postgresql_config_cluster_dir: "{{ pgbouncer_postgresql_data_dir }}" pgbouncer_postgresql_config_cluster_dir: "{{ pgbouncer_postgresql_data_dir }}"
pgbouncer_postgresql_cluster_name: "data" pgbouncer_postgresql_cluster_name: "data"
pgbouncer_postgresql_package_name_regex: 'postgresql.[{{ pgbouncer_postgresql_supported_versions | join(",") }}]-server' pgbouncer_postgresql_package_name_regex: 'postgres.*[{{ pgbouncer_postgresql_supported_versions | join(",") }}]-server'