keep old configs on update

update regex
This commit is contained in:
ace 2024-11-03 17:12:38 +03:00
parent 23a4dfe28b
commit 4632c3666d
Signed by: ace
GPG Key ID: 2C08973DD37A76FD
3 changed files with 4 additions and 2 deletions

View File

@ -93,6 +93,7 @@
owner: "{{ wal_g_pg_config_owner }}"
group: "{{ wal_g_pg_config_group }}"
mode: 0644
backup: yes
tags: wal-g, wal_g, wal_g_conf
- name: Create wal-g restore config
@ -109,3 +110,4 @@
owner: "{{ wal_g_pg_config_owner }}"
group: "{{ wal_g_pg_config_group }}"
mode: 0644
backup: yes

View File

@ -6,7 +6,7 @@ wal_g_pg_home_dir: "/var/lib/postgresql"
wal_g_pg_data_dir: "{{ wal_g_pg_home_dir }}/{{ wal_g_pg_major_version }}/{{ wal_g_pg_cluster_name }}"
wal_g_pg_cluster_name: "main"
wal_g_postgresql_package_name_regex: 'postgresql-.[{{ wal_g_postgresql_supported_versions | join(",") }}]'
wal_g_postgresql_package_name_regex: 'postgres.*[{{ wal_g_postgresql_supported_versions | join(",") }}]'
wal_g_package_name: "wal-g"
wal_g_package: "{{ wal_g_package_name }}={{ wal_g_version }}-{{ wal_g_version_build }}"

View File

@ -8,7 +8,7 @@ wal_g_rpm_repository:
wal_g_pg_home_dir: "/var/lib/pgsql"
wal_g_pg_data_dir: "{{ wal_g_pg_home_dir }}/{{ wal_g_pg_major_version }}/data"
wal_g_postgresql_package_name_regex: 'postgresql.[{{ wal_g_postgresql_supported_versions | join(",") }}]-server'
wal_g_postgresql_package_name_regex: 'postgres.*[{{ wal_g_postgresql_supported_versions | join(",") }}]-server'
wal_g_package_name: "wal-g"
wal_g_package: "{{ wal_g_package_name }}-{{ wal_g_version }}"