try something like this: https://gist.github.com/bcoca/f72d602c78943d70132c
it uses set_fact to keep the data per host and then a template to iterate over the hosts and print their facts in same file -- 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/CAJ5XC8ncrk4pXJZBouHfyr1TxyCgbGjy9w-AQfRQYDWA1%3D%2BZzA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
