mirror of
https://gitea.0xace.cc/ansible-galaxy/patroni.git
synced 2024-11-24 23:56:39 +00:00
fix wal-g
This commit is contained in:
parent
54dc440f9c
commit
eb8478ddbc
@ -16,21 +16,29 @@
|
|||||||
- "vars"
|
- "vars"
|
||||||
tags: patroni_vars
|
tags: patroni_vars
|
||||||
|
|
||||||
- name: Set facts about needed vars
|
- name: Set facts about Patroni vars
|
||||||
set_fact:
|
set_fact:
|
||||||
patroni_postgresql_home_dir: "{{ patroni_postgresql_home_dir }}"
|
patroni_postgresql_home_dir: "{{ patroni_postgresql_home_dir }}"
|
||||||
patroni_postgresql_data_dir: "{{ patroni_postgresql_data_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"
|
- name: "Set locale for PostgreSQL"
|
||||||
include_tasks: locale.yaml
|
include_tasks: locale.yaml
|
||||||
tags: patroni_locale
|
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"
|
include_tasks: "{{ ansible_facts['os_family'] }}/patroni_repos_and_deps.yaml"
|
||||||
when: patroni_install_official_repo
|
when: patroni_install_official_repo
|
||||||
tags: patroni_repos_and_deps
|
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"
|
include_tasks: "{{ ansible_facts['os_family'] }}/postgresql_install.yaml"
|
||||||
tags: patroni_postgresql_install
|
tags: patroni_postgresql_install
|
||||||
|
|
||||||
@ -43,7 +51,7 @@
|
|||||||
path: /etc/patroni/patroni.yaml
|
path: /etc/patroni/patroni.yaml
|
||||||
register: patroni_config
|
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"
|
include_tasks: "{{ ansible_facts['os_family'] }}/main.yaml"
|
||||||
tags: patroni_install
|
tags: patroni_install
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user