hypersql_devops.postgres.etcd_nodes (0.0.2) — lookup

Lookup function for etcd 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 etcd nodes list

Usage examples

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

Inputs

    
_terms:
    description: HA location name.
    required: false

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

Outputs

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