tmax_opensql.postgres.pgpool2_nodes (1.0.3) — lookup

Lookup for PgPoolII nodes

Authors: Julien Tachoires

Install collection

Install with ansible-galaxy collection install tmax_opensql.postgres:==1.0.3


Add to requirements.yml

  collections:
    - name: tmax_opensql.postgres
      version: 1.0.3

Description

Lookup for PgPoolII nodes

Usage examples

1
  • Error
    Use a fully-qualified name, such as 'ansible.builtin.debug' instead of 'debug'.
1
  • Hint
    Inline module parameters used in module 'debug' also use Jinja expression. Will not be checked further.
- name: Show pgpool2 nodes
  debug: msg="{{ lookup('pgpool2_nodes') }}"

Inputs

    
_terms:
    description: Private IP of the primary PG node.
    required: false

default:
    description: Do not filter on primary private IP.

Outputs

_value:
  description:
  - List of PgPoolII nodes
  elements:
  - dict: node_type, hostname, ansible_host (public IP address), private_ip, primary_private_ip
  type: list