Hello Team.
I need assistance with the community.postgresql.postgresql_subscription module. I use this module to create a subscription in an AWS RDS Postgres 15.5 instance. The first run of the playbook works perfectly, and the subscription is created without any issues. However, when I run the same playbook a second time, I receive the following error:
SUMMARY
Hello Team. I need assistance with the community.postgresql.postgresql_subscription module. I use this module to create a subscription in an AWS RDS Postgres 15.5 instance. The first run of the playbook works perfectly, and the subscription is created without any issues. However, when I run the same playbook a second time, I receive the following error:
Cannot execute SQL 'CREATE SUBSCRIPTION "subscription_name" CONNECTION 'host=example.rds.amazonaws.com port=5432 user=...password=... dbname=...' PUBLICATION "pub_name" WITH (slot_name = 'slot_name')': subscription "subscription_name" already exists
ISSUE TYPE
COMPONENT NAME
community.postgresql.postgresql_subscription v3.2.0
ANSIBLE VERSION
COLLECTION VERSION
STEPS TO REPRODUCE
EXPECTED RESULTS
playbook result should be idempotent
ACTUAL RESULTS
Issue that subscription "subscription_name" already exists