mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
03132041fb
* 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 |
||
---|---|---|
.. | ||
__init__.py | ||
add_host.py | ||
asa_template.py | ||
assemble.py | ||
assert.py | ||
async.py | ||
copy.py | ||
debug.py | ||
eos_config.py | ||
eos_template.py | ||
fail.py | ||
fetch.py | ||
group_by.py | ||
include_vars.py | ||
ios_config.py | ||
ios_template.py | ||
iosxr_config.py | ||
iosxr_template.py | ||
junos_template.py | ||
net_config.py | ||
net_template.py | ||
normal.py | ||
nxos_config.py | ||
nxos_template.py | ||
ops_template.py | ||
package.py | ||
patch.py | ||
pause.py | ||
raw.py | ||
script.py | ||
service.py | ||
set_fact.py | ||
sros_config.py | ||
synchronize.py | ||
template.py | ||
unarchive.py | ||
vyos_config.py | ||
win_copy.py | ||
win_reboot.py | ||
win_template.py |