ansible.builtin.config (v2.5.15) — lookup

Lookup current Ansilbe configuration values

| "added in version" 2.5 of ansible.builtin"

Authors: Ansible Core

Install Ansible via pip

Install with pip install ansible==2.5.15

Description

Retrieves the value of an Ansible configuration setting.

You can use C(ansible-config list) to see all available settings.

Inputs

    
_terms:
    description: The key(s) to look up
    required: true

on_missing:
    choices:
    - error
    - skip
    - warn
    default: error
    description:
    - action to take if term is missing from config
    - Error will raise a fatal error
    - Skip will just ignore the term
    - Warn will skip over it but issue a warning
    type: string

Outputs

_raw:
  description:
  - value(s) of the key(s) in the config