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