From f14ee87d489279b0f9dbd66a7b5679a60c53611a Mon Sep 17 00:00:00 2001 From: Vitaliy Kukharik <37010174+vitabaks@users.noreply.github.com> Date: Tue, 28 Nov 2023 15:25:45 +0300 Subject: [PATCH] add_pgnode.yml: Fix the list of hosts to configure pgbackrest (#517) --- add_pgnode.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/add_pgnode.yml b/add_pgnode.yml index dd9d0e1bf..3c31eb10f 100644 --- a/add_pgnode.yml +++ b/add_pgnode.yml @@ -133,7 +133,7 @@ changed_when: false tags: always -- name: add_pgnode.yml | Add new PostgreSQL node to the cluster +- name: add_pgnode.yml | Configure new PostgreSQL node hosts: new_replica become: true become_method: sudo @@ -168,9 +168,10 @@ - role: timezone - role: ntp - role: copy + - role: cron -- name: add_pgnode.yml | Add new PostgreSQL node with pgBackRest to the cluster - hosts: pgbackrest:new_replica +- name: add_pgnode.yml | Configure pgBackRest + hosts: pgbackrest:postgres_cluster become: true become_method: sudo gather_facts: true @@ -193,7 +194,7 @@ when: dcs_type == "consul" tags: consul -- name: add_pgnode.yml | Configure new replica and additional roles +- name: add_pgnode.yml | Add new PostgreSQL replica to the cluster hosts: new_replica become: true become_method: sudo @@ -222,8 +223,6 @@ - role: pg_probackup when: pg_probackup_install|bool - - role: cron - - role: pgbouncer when: pgbouncer_install|bool