fix wal-g

This commit is contained in:
ace 2023-04-19 15:19:52 +03:00
parent 54dc440f9c
commit eb8478ddbc
Signed by: ace
GPG Key ID: 2C08973DD37A76FD

View File

@ -16,21 +16,29 @@
- "vars"
tags: patroni_vars
- name: Set facts about needed vars
- name: Set facts about Patroni vars
set_fact:
patroni_postgresql_home_dir: "{{ patroni_postgresql_home_dir }}"
patroni_postgresql_data_dir: "{{ patroni_postgresql_data_dir }}"
- name: Set facts about WAL-G vars
set_fact:
wal_g_pg_home_dir: "{{ wal_g_pg_home_dir }}"
wal_g_pg_data_dir: "{{ wal_g_pg_data_dir }}"
when:
- patroni_wal_g_install is defined
- patroni_wal_g_install
- name: "Set locale for PostgreSQL"
include_tasks: locale.yaml
tags: patroni_locale
- name: "Install Patroni repository and deps for {{ ansible_facts['os_family'] }}"
- name: "Install Patroni repository and deps for {{ ansible_facts['distribution'] }}"
include_tasks: "{{ ansible_facts['os_family'] }}/patroni_repos_and_deps.yaml"
when: patroni_install_official_repo
tags: patroni_repos_and_deps
- name: "Install PostgreSQL for {{ ansible_facts['os_family'] }}"
- name: "Install PostgreSQL for {{ ansible_facts['distribution'] }}"
include_tasks: "{{ ansible_facts['os_family'] }}/postgresql_install.yaml"
tags: patroni_postgresql_install
@ -43,7 +51,7 @@
path: /etc/patroni/patroni.yaml
register: patroni_config
- name: "Install Patroni for {{ ansible_facts['os_family'] }}"
- name: "Install Patroni for {{ ansible_facts['distribution'] }}"
include_tasks: "{{ ansible_facts['os_family'] }}/main.yaml"
tags: patroni_install