From 576f8eb252a63275965c664edcc2429afb49228c Mon Sep 17 00:00:00 2001 From: Oleksandr Stepanov Date: Wed, 20 Nov 2024 17:44:12 +0100 Subject: [PATCH] change priv to role_attr_flags --- .../mainnet_with_snapshots_recovery/requirements.yml | 3 +++ tasks/replication.yml | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/example_playbooks/mainnet_with_snapshots_recovery/requirements.yml b/example_playbooks/mainnet_with_snapshots_recovery/requirements.yml index af620b0..71afa5f 100644 --- a/example_playbooks/mainnet_with_snapshots_recovery/requirements.yml +++ b/example_playbooks/mainnet_with_snapshots_recovery/requirements.yml @@ -10,3 +10,6 @@ roles: collections: - name: community.general version: 8.4.0 +# Collection for the replication only. + - name: community.postgresql + version: 3.7.0 diff --git a/tasks/replication.yml b/tasks/replication.yml index 8e15df6..bf1af73 100644 --- a/tasks/replication.yml +++ b/tasks/replication.yml @@ -15,7 +15,7 @@ login_password: "{{ database_password }}" name: "{{ postgres_replica_user_name }}" password: "{{ postgres_replica_user_password }}" - priv: "REPLICATION" + role_attr_flags: "REPLICATION" - name: Create replication slot if doesn't exist community.postgresql.postgresql_slot: