On Wed, May 23, 2012 at 7:18 PM, Kumar <
kumaravel...@gmail.com> wrote:
> Hi :
>
> Is there anyway to access the setup module variables in a custom
> built modules ?
Easiest thing is to pass them back to the modules using the dollar
sign syntax. In other words, they already bubble up back to the
playbook, so you just pass the things in that you need.
Trivial example:
command echo $ansible_hostname
Modules don't require the setup module to be used (think
/usr/bin/ansible vs /usr/bin/ansible-playbook), so they don't read
from there.