alikins.collection_inspect.collection_inspect (0.0.49) — vars

In charge of loading group_vars and host_vars

| "added in version" 2.4 of alikins.collection_inspect"

Authors: unknown

Install collection

Install with ansible-galaxy collection install alikins.collection_inspect:==0.0.49


Add to requirements.yml

  collections:
    - name: alikins.collection_inspect
      version: 0.0.49

Description

Loads YAML vars into corresponding groups/hosts in group_vars/ and host_vars/ directories.

Files are restricted by extension to one of .yaml, .json, .yml or no extension.

Hidden (starting with '.') and backup (ending with '~') files and directories are ignored.

Only applies to inventory sources that are existing paths.

Inputs

    
_valid_extensions:
    default:
    - .yml
    - .yaml
    - .json
    description:
    - Check all of these extensions when looking for 'variable' files which should be
      YAML or JSON or vaulted versions of these.
    - This affects vars_files, include_vars, inventory and vars plugins among others.
    env:
    - name: ANSIBLE_YAML_FILENAME_EXT
    ini:
    - key: defaults
      section: yaml_valid_extensions
    type: list