Skip to content

Commit

Permalink
Add todo about idempotency
Browse files Browse the repository at this point in the history
  • Loading branch information
Lun4m committed Feb 5, 2025
1 parent f2b52f0 commit cdb6601
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ansible/roles/pg/tasks/configure/repmgr.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
# https://www.repmgr.org/docs/current/quickstart-repmgr-user-database.html
# TODO: not idempotent, after the primary/standby relationship is established,
# the standby node becomes read-only
- name: Create repmgr user
community.postgresql.postgresql_user:
name: repmgr
Expand All @@ -9,6 +11,8 @@
become: true
become_user: postgres

# TODO: not idempotent, after the primary/standby relationship is established,
# the standby node becomes read-only
- name: Create a repmgr database, with owner repmgr
community.postgresql.postgresql_db:
name: repmgr
Expand Down

0 comments on commit cdb6601

Please sign in to comment.