I have a dict:--hosts:web01:int_ip: 192.168.1.1ext_ip: 1.2.3.4web02:int_ip: 192.168.1.2ext_ip: 1.2.3.5I am using a template that I supply items to with "with_items", and I reference the data as "item". If I use "with_dict", then the template has to be duplicated and "item" changed to "item.key". In this example I would like to get a list containing web01 and web02 from the dict hosts.I would like to do something like:with_items: hosts.keywhen: item[:3] == 'web'Any ideas? Thanks!
You received this message because you are subscribed to the Google Groups "Ansible Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-deve...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.