Hi,
How does one get access to the inventory from a custom action plugin?
I'm able to do something like this to access host vars:
task_vars["hostvars"]["my_host"]["ansible_host"] but I need to be able to
iterate all hosts in the inventory.
Thanks,
James.
--
You received this message
Hi all,
I started this as an experiment but it might end up being useful.
https://github.com/wied03/ansible-ruby
The idea is (for those that like Ruby) to have a Ruby DSL that ultimately
generates YML files for Ansible. This is partially based on the comment I
read somewhere (I think) that
Oh, nice! Thanks for the link, that's a really cool concept.
After a bit of hunting around, I'd been thinking the same way as the
blogger you linked to - that writing (or templating) an XML file and
importing that is much neater than using their Powershell for making rules.
So I suspect that a
hostvars always has all hosts present in inventory, you can also look at
groups['all'] to get the full list.
--
--
Brian Coca
--
You received this message because you are subscribed to the Google Groups
"Ansible Development" group.
To unsubscribe from this group and stop receiving
Hello,
Thank you for answer. It's bad news because all variables which *can be*
used by host reads on each task.
Variables in *all* group of course provide most reads but problem also
applies to other groups and host_vars. =(
> Can you give a different example of that being in a group the