tmax_opensql.postgres.supported_roles (1.0.3) — lookup

Get the list of the supported roles by the current host

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

Get the list of the supported roles byt the current host, based on its groups and attributes.

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: Get the supported roles by the current host
  debug: msg="{{ lookup('supported_roles') }}"

Outputs

_value:
  description:
  - List of role name
  elements:
  - string
  type: list