1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

make yaml extensions configurable

fixes #25419
This commit is contained in:
Brian Coca 2017-07-13 19:19:34 -04:00 committed by Brian Coca
parent aca11a28a2
commit 899527f3cb
2 changed files with 10 additions and 1 deletions

View file

@ -1405,3 +1405,13 @@ VARIABLE_PRECEDENCE:
value_type: list
vars: []
yaml: {key: defaults.precedence}
YAML_FILENAME_EXTENSIONS:
default: [".yml", ".yaml", ".json"]
desc: "check all of these extensions when looking for 'variable' files which should be YAML or JSON or vaulted versions of theses."
env:
- name: ANSIBLE_YAML_FILENAME_EXT
ini:
- {key: defaults, section: yaml_valid_extensions}
value_type: list
vars: []
yaml: {key: defaults.yaml_valid_extensions}

View file

@ -83,4 +83,3 @@ RESTRICTED_RESULT_KEYS = ['ansible_rsync_path', 'ansible_playbook_python']
TREE_DIR = None
VAULT_VERSION_MIN = 1.0
VAULT_VERSION_MAX = 1.0
YAML_FILENAME_EXTENSIONS = [".yml", ".yaml", ".json"] # check all of these extensions when looking for 'variable' files which should be YAML or JSON.