Playbook using groups module and dictionary looping doesn't work

Hi,

I have googled around and couldn’t find any info regarding this but I suspect there is something wrong with how the group module handles dictionaries.

I have a following entry for host in host_vars directory:

Hi Daniel, this appears to be an issue with an internal variable named groups, which contains the groups to which the current inventory host belongs. Using your example, if I change the variable name to “my_groups”, everything works fine.

Thanks!

Hi James,

you are absolutely correct. I actually got the answer a few hours earlier from Toshio Kuratomi tkuratomi@ansible.com but this is exactly the culprit.

Thanks again,
Daniel

W dniu czwartek, 20 listopada 2014 17:44:42 UTC+1 użytkownik James Cammarata napisał: