hypersql_devops.postgres.bdr_nodes (0.0.2) — lookup

Lookup function for BDR nodes

Authors: Julien Tachoires

Install collection

Install with ansible-galaxy collection install hypersql_devops.postgres:==0.0.2


Add to requirements.yml

  collections:
    - name: hypersql_devops.postgres
      version: 0.0.2

Description

Retrieves the BDR nodes list

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Show all members of the BDR cluster
  debug: msg="{{ lookup('bdr_nodes') }}"
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Show all members of the BDR cluster located in the BDRDC1 HA location
  debug: msg="{{ lookup('bdr_nodes', 'BDRDC1') }}"

Inputs

    
_terms:
    description: HA location name.
    required: false

default:
    description: All BDR nodes are returned, no filter applied.

Outputs

_value:
  description:
  - List of BDR nodes
  elements: dict
  type: list