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: