make yaml extensions configurable

fixes #25419
pull/27152/head
Brian Coca 7 years ago committed by Brian Coca
parent aca11a28a2
commit 899527f3cb

@ -1405,3 +1405,13 @@ VARIABLE_PRECEDENCE:
value_type: list value_type: list
vars: [] vars: []
yaml: {key: defaults.precedence} 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}

@ -83,4 +83,3 @@ RESTRICTED_RESULT_KEYS = ['ansible_rsync_path', 'ansible_playbook_python']
TREE_DIR = None TREE_DIR = None
VAULT_VERSION_MIN = 1.0 VAULT_VERSION_MIN = 1.0
VAULT_VERSION_MAX = 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.

Loading…
Cancel
Save