Ansible action plugin to template arbitrary json ini yaml data
Go to file
Nolan Brubaker 80a1262252 Add a get_nested filter
When accessing nested facts, such as in ansible_local sections, guard
statements in the when clause can get quite long, due to having to
repeate the 'in/not in' logic for every key at every level.

The get_nested filter attempts to instead to move the guard into a
single line, making the conditions easier to write and maintain.

As example,

   ('openstack_ansible' not in ansible_local or
    'swift' not in ansible_local['openstack_ansible'] or
    'venv_tag' not in ansible_local['openstack_ansible']['swift'] or
    ansible_local['openstack_ansible']['swift']['venv_tag'] == swift_venv_tag)

 could be rewritten as

     get_nested(ansible_local, 'openstack_ansible.swift.venv_tag') == swift_venv_tag

Change-Id: I3b43c25c8783c43cf5285f2b3e7267b2c5712ea0
2017-07-07 19:42:39 +00:00
action Add ignore_none_type to config template 2017-06-26 19:12:43 +00:00
callback Remove profile_tasks callback 2017-02-06 09:03:20 -06:00
connection Avoid double-encoding to bytes 2017-06-24 20:31:39 +00:00
doc Remove neutron library 2017-05-24 23:00:42 +00:00
examples Replace github with git.o.o 2016-11-02 12:22:21 +11:00
filter Add a get_nested filter 2017-07-07 19:42:39 +00:00
library Add ignore_none_type to config template 2017-06-26 19:12:43 +00:00
lookup Resolve unorderable types errors 2017-06-28 09:04:34 -07:00
meta Add openSUSE and CentOS as supported distributions 2017-04-10 23:07:15 +01:00
releasenotes Add a get_nested filter 2017-07-07 19:42:39 +00:00
strategy Fix delegation to containers between hosts 2017-06-19 16:14:47 -07:00
tests Add a get_nested filter 2017-07-07 19:42:39 +00:00
vars_plugins Fix the pep8 fixing 2017-03-14 18:01:43 +00:00
.gitignore Updated from OpenStack Ansible Tests 2017-06-22 15:20:16 +00:00
.gitreview Updated repo for new org 2016-01-27 10:31:29 -06:00
bindep.txt Updated from OpenStack Ansible Tests 2017-06-22 15:20:16 +00:00
CONTRIBUTING.rst [DOCS] Cleanup the role docs for consistency and clarity 2016-03-07 17:38:19 -05:00
LICENSE Update LICENSE file 2016-02-01 16:47:07 +00:00
manual-test.rc Use centralised test scripts 2016-09-28 12:04:13 +01:00
README.rst Show team and repo badges on README 2016-11-25 16:21:30 +01:00
run_tests.sh Updated from OpenStack Ansible Tests 2017-06-22 15:20:16 +00:00
setup.cfg Update homepage with developer documentation page 2016-09-20 12:04:01 +05:30
setup.py Updated from global requirements 2017-03-02 11:52:19 +00:00
test-requirements.txt Updated from global requirements 2017-06-27 12:18:55 +00:00
tox.ini Ensure that role tests pin pip/setuptools/wheel 2017-06-04 11:23:48 +01:00
Vagrantfile Updated from OpenStack Ansible Tests 2017-06-22 15:20:16 +00:00

Team and repository tags

image

OpenStack-Ansible plugins

These are the plugins the OpenStack-Ansible deployment project relies on. The plugins can be added to any Ansible project by simply cloning this repository and setting up the ansible.cfg file to point at them as additional plugins for your project.