community.general/lib/ansible/plugins
Allen Sanabria 03132041fb Include vars updated to work with directories (#17207)
* New features for include_vars

include_vars.py now allows you to include an entire directory and its nested directories of variable files.

Added Features..

* Ignore by default *.md, *.py, and *.pyc
* Ignore any list of files.
* Only include files nested by depth (default=unlimited)
* Match only files matching (valid regex)
* Sort files alphabetically and load in that order.
* Sort directories alphabetically and load in that order.

```
    - include_vars: 'vars/all.yml'

    - name: include all.yml
      include_vars:
        file: 'vars/all.yml'

    - name: include all yml files in vars/all and all nested directories
      include_vars:
        dir: 'vars/all'

    - name: include all yml files in vars/all and all nested directories and save the output in test.
      include_vars:
        dir: 'vars/all'
        name: test

    - name: include all yml files in vars/services
      include_vars:
        dir: 'vars/services'
        depth: 1

    - name: include only bastion.yml files
      include_vars:
        dir: 'vars'
        files_matching: 'bastion.yml'

    - name: include only all yml files exception bastion.yml
      include_vars:
        dir: 'vars'
        ignore_files: 'bastion.yml'
```

* Added whitelist for file extensisions (yaml, yml, json)

* Removed unit tests in favor of integration tests
2016-08-30 14:34:31 -07:00
..
action Include vars updated to work with directories (#17207) 2016-08-30 14:34:31 -07:00
cache Allow to make the jsonfile cache files pretty (indented and sorted) (#17000) 2016-08-08 17:15:19 -04:00
callback Fix context_demo callback plugin. (#17235) 2016-08-25 10:22:27 -07:00
connection Python3 fixes and porting (#17271) 2016-08-29 09:11:40 -07:00
filter Reduce no longer exist in python3, so we have to use six (#17304) 2016-08-30 10:58:22 -07:00
lookup Fix the lines lookup to work on python3 (#17291) 2016-08-30 10:38:55 -07:00
shell Use file list, not recursion, in _fixup_perms. (#16924) 2016-08-05 18:40:28 -07:00
strategy include_role (role revamp implementation) (#17232) 2016-08-26 13:42:13 -04:00
test J2 test docs (#16646) 2016-07-12 10:13:00 -04:00
vars Making the switch to v2 2015-05-03 21:47:26 -05:00
__init__.py Make _display_plugin_load much less noisy 2016-08-26 20:28:58 +05:30