Ansible lookup plugins

From Notes_Wiki
Revision as of 12:58, 21 March 2015 by Saurabh (talk | contribs) (Created page with "<yambe:breadcrumb>Ansible_tips_and_tricks|Ansible tips and tricks</yambe:breadcrumb> =Ansible lookup plugins= Ansible has many lookup plugins. For existing installation they...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<yambe:breadcrumb>Ansible_tips_and_tricks|Ansible tips and tricks</yambe:breadcrumb>

Ansible lookup plugins

Ansible has many lookup plugins. For existing installation they can be found at /usr/lib/python2.6/site-packages/ansible/runner/lookup_plugins/ or alternatively 'locate fileglob.py' can be used to locate the lookup_plugin directory. Some important plugins are:

with_items
Working with lists and dictionary variables in ansible
with_nested
Nested looping in ansible (loop inside loop)