mirror of
https://gitea.0xace.cc/ansible-galaxy/patroni.git
synced 2025-06-29 02:53:07 +00:00
add wal-g support for Debian os family
This commit is contained in:
@ -1,3 +1,6 @@
|
||||
- name: "Include backup with WAL-G install"
|
||||
include_tasks: wal_g_install.yaml
|
||||
|
||||
- name: "Install Patroni {{ patroni_version }}"
|
||||
include_tasks: patroni_install.yaml
|
||||
tags: patroni_install
|
||||
|
11
tasks/Debian/wal_g_install.yaml
Normal file
11
tasks/Debian/wal_g_install.yaml
Normal file
@ -0,0 +1,11 @@
|
||||
- name: Add WAL-G to patroni_create_replica_methods
|
||||
set_fact:
|
||||
patroni_create_replica_methods: "{{ patroni_create_replica_methods + [ 'wal_g' ] }}"
|
||||
when: patroni_wal_g_install
|
||||
|
||||
- name: Include WAL-G role
|
||||
ansible.builtin.include_role:
|
||||
name: wal-g
|
||||
vars:
|
||||
wal_g_pg: yes
|
||||
when: patroni_wal_g_install
|
@ -1,5 +1,5 @@
|
||||
- name: Include backup with WAL-G install
|
||||
- name: "Include backup with WAL-G install"
|
||||
include_tasks: wal_g_install.yaml
|
||||
|
||||
- name: Include Patroni {{ patroni_version }} install
|
||||
- name: "Include Patroni {{ patroni_version }} install"
|
||||
include_tasks: patroni_install.yaml
|
||||
|
@ -32,7 +32,7 @@
|
||||
|
||||
- name: "Install PostgreSQL for {{ ansible_facts['os_family'] }}"
|
||||
include_tasks: "{{ ansible_facts['os_family'] }}/postgresql_install.yaml"
|
||||
tags: patroni_install
|
||||
tags: patroni_postgresql_install
|
||||
|
||||
- name: "Manage TLS/SSL certificates"
|
||||
include_tasks: cacert.yaml
|
||||
|
Reference in New Issue
Block a user