the normal pattern is to have this taken care of by a hosts loop - hosts: webservers tasks: ...
but your case seems to imply having multiple webservers per host and your use of registered vars and |changed seems to be the adequate solution. To expand on that when you have more of these variables you can do: with_items: - web_servers.results - app_servers.results - etc ... which will be aggregated into 'item'. -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAJ5XC8mL%3DcRRTUwTKV%3DX%3DMN8rZanJq9NxCSuxZZB8SR6eD0Zeg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
