[ansible-devel] How to access inventory from custom action plugin v2

2016-08-23 Thread James Kinley
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

[ansible-devel] Ruby DSL Project Feedback

2016-08-23 Thread Brady Wied
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

Re: [ansible-devel] Re: Windows question - is anyone managing Applocker with Ansible?

2016-08-23 Thread N. Bailey
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

Re: [ansible-devel] How to access inventory from custom action plugin v2

2016-08-23 Thread Brian Coca
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

Re: [ansible-devel] Ansilbe read all variable even they do not need for task (perfomance issue with lookup_plugins)

2016-08-23 Thread Artyom Aleksandrov
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