hypersql_devops / hypersql_devops.postgres / 0.0.2 / lookup / repmgr_nodes Lookup for repmgr nodes Authors: Julien Tachoireshypersql_devops.postgres.repmgr_nodes (0.0.2) — lookup
Install with ansible-galaxy collection install hypersql_devops.postgres:==0.0.2
collections: - name: hypersql_devops.postgres version: 0.0.2
Retrieves the repmgr nodes list, based on node's private IP
- name: Show all members of the repmgr cluster that the current node is part of debug: msg="{{ lookup('repmgr_nodes') }}"
- name: Show all members of the repmgr cluster that the {{ primary_private_ip }} is part of debug: msg="{{ lookup('repmgr_nodes', primary_private_ip) }}"
_terms: description: The private IP of one member of the repmgr cluster. required: false default: description: The private IP of the current node is used.
_value: description: - List of Postgres nodes elements: dict type: list