ansible / ansible-modules-core

Ansible modules - these modules ship with ansible
1.3k stars 1.95k forks source link

Include_vars in free-form mode requires a file extension, breaking reverse compatibility #5903

Closed zkleinfeld closed 7 years ago

zkleinfeld commented 7 years ago

When the include_vars module options were expanded for 2.2, it lost the ability to load YAML files without file extensions in free-form mode. For example:

- name: Include some vars from a file without an extension
  include_vars: myvars

results in:

"message": "myvars does not have a valid extension: yaml, yml, json"

This seems like it would be a very common operation which should be supported, especially when this module is used on OSs where file extensions are otherwise optional, or when using with_items to load the contents of directory (the very case that the 2.2 options have made easier).

And regardless, since this module is tagged with stableinterface, this really should not happen.

ansibot commented 7 years ago

This repository has been locked. All new issues and pull requests should be filed in https://github.com/ansible/ansible

Please read through the repomerge page in the dev guide.