ansible/lib/ansible
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
..
cli include_role (role revamp implementation) (#17232) 2016-08-26 13:42:13 -04:00
compat Move py34 mock_open compat to compat/test/mock (#17157) 2016-08-19 18:11:24 -04:00
config
errors Fix some typos (#16498) 2016-06-29 14:31:25 -04:00
executor include_role (role revamp implementation) (#17232) 2016-08-26 13:42:13 -04:00
galaxy Enable most unittests on python3 (just some vault unittests and a logging one left) (#17240) 2016-08-25 07:30:03 -07:00
inventory The former match for a section header included hosts that began with a range. (#17225) 2016-08-24 13:57:35 -04:00
module_utils exo_dns: new module utils and integration tests for exoscale DNS (#17230) 2016-08-30 21:48:28 +02:00
modules Update submodule refs 2016-08-29 13:21:02 -07:00
parsing fix action parsing to avoid conflicts agin 2016-08-26 16:15:55 -04:00
playbook Add support for become_flags on the task level (#17310) 2016-08-30 12:29:00 -07:00
plugins Include vars updated to work with directories (#17207) 2016-08-30 14:34:31 -07:00
template Implement vault encrypted yaml variables. (#16274) 2016-08-23 20:03:11 -04:00
utils initial add of shared modules for supporting Nokia SROS devices 2016-08-25 11:47:00 -04:00
vars include_role (role revamp implementation) (#17232) 2016-08-26 13:42:13 -04:00
__init__.py Fix ziploader for the cornercase of ansible invoking ansible. 2016-04-29 08:47:49 -07:00
constants.py * Fix race in creating temp directories pre-fork (#16965) 2016-08-04 19:35:36 -04:00
release.py Fix ziploader for the cornercase of ansible invoking ansible. 2016-04-29 08:47:49 -07:00
test-requirements.txt