hypersql_devops.postgres.pem_agents (0.0.2) — lookup

Lookup for nodes where the PEM agent is enabled

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

Lookup for nodes where the PEM agent is enabled, based on PEM server private_ip

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Show nodes where the PEM agent is enabled
  debug: msg="{{ lookup('pem_agent') }}"

Inputs

    
_terms:
    description: Private IP of the PEM server.
    required: false

default:
    description: private_ip of the current node.

Outputs

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