1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/lib/ansible/plugins/action
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
..
__init__.py Move a path being passed around as a byte string to being passed around as a text string. (#17190) 2016-08-22 21:55:30 -07:00
add_host.py Allow groups to be specified using YAML list syntax for add_host 2016-06-18 07:47:10 -05:00
asa_template.py Module util, template action and doc fragment for Cisco ASA 2016-06-01 20:57:30 +02:00
assemble.py file() function in python3 no longer exist, so use open() (#17303) 2016-08-30 10:47:41 -07:00
assert.py Two fixes to action plugins 2015-10-22 16:07:26 -07:00
async.py Move a path being passed around as a byte string to being passed around as a text string. (#17190) 2016-08-22 21:55:30 -07:00
copy.py Fix file and copy modules on py3 and enable tests. (#17239) 2016-08-25 07:44:31 -07:00
debug.py Cleanup debug.py (#17222) 2016-08-24 10:37:15 -07:00
eos_config.py updates eos shared module 2016-08-22 20:26:16 -04:00
eos_template.py initial add of action plugin eos_template 2016-02-01 11:51:52 -05:00
fail.py Two fixes to action plugins 2015-10-22 16:07:26 -07:00
fetch.py Fix fetch idempotence (#17255) 2016-08-25 21:45:38 -07:00
group_by.py Do not set 'changed' to True when using group_by 2016-01-04 17:46:40 +01:00
include_vars.py Include vars updated to work with directories (#17207) 2016-08-30 14:34:31 -07:00
ios_config.py adds action plugin for working with network configuration files 2016-07-11 06:12:31 -07:00
ios_template.py initial add of action plugin ios_template 2016-02-01 11:54:02 -05:00
iosxr_config.py updates iosxr shared module 2016-08-24 11:03:01 -04:00
iosxr_template.py adds new action plugin iosxr_template 2016-02-12 17:08:21 -05:00
junos_template.py updates action plugin junos_template to guess file format 2016-04-24 11:41:00 -04:00
net_config.py action plugin net_config will now remove any private result key 2016-08-19 11:15:36 -04:00
net_template.py net_template.py: Fix jinja2 template file search path (#15134) 2016-05-16 10:05:08 -04:00
normal.py better module error handling 2015-12-22 23:01:56 -05:00
nxos_config.py updates nxos shared module refactor 2016-08-21 08:57:49 -04:00
nxos_template.py initial add of action plugin nxos_template 2016-02-01 11:52:50 -05:00
ops_template.py Migrate basestring to a python3 compatible type (#17199) 2016-08-23 13:13:44 -07:00
package.py updated package to use minimal fact gathering 2016-06-03 09:54:59 -04:00
patch.py Use file list, not recursion, in _fixup_perms. (#16924) 2016-08-05 18:40:28 -07:00
pause.py if seconds are specified, min is 1 2016-06-27 09:36:15 -04:00
raw.py raw now returns changed: true (#17112) 2016-08-16 20:39:23 -07:00
script.py Use file list, not recursion, in _fixup_perms. (#16924) 2016-08-05 18:40:28 -07:00
service.py fixes for service module interaction with systemd (#16720) 2016-07-22 20:35:20 -04:00
set_fact.py Migrate basestring to a python3 compatible type (#17199) 2016-08-23 13:13:44 -07:00
sros_config.py initial add of shared modules for supporting Nokia SROS devices 2016-08-25 11:47:00 -04:00
synchronize.py Fix for issue @synchronize doesn't substitute variables properly #16347 (#16349) 2016-08-04 11:27:44 -07:00
template.py Move a path being passed around as a byte string to being passed around as a text string. (#17190) 2016-08-22 21:55:30 -07:00
unarchive.py actions/unarchive: fix unarchive from remote url (#17126) 2016-08-19 08:16:21 -05:00
vyos_config.py add vyos action plugin for handling local operations 2016-07-15 08:30:21 -04:00
win_copy.py Two fixes to action plugins 2015-10-22 16:07:26 -07:00
win_reboot.py add win_reboot action 2016-04-11 14:48:39 -07:00
win_template.py Two fixes to action plugins 2015-10-22 16:07:26 -07:00