Hi, I am looking for a way to get a list of hosts on which the playbook is being executed after limiting original inventory with '--limit' flag or 'serial' command in the playbook.
I have found that it is possible to get all the hosts in a particular group by accessing 'groups['my_group']' variable. But the contents of this dictionary does not change when using '--limit' or 'serial'. Is there a way to achieve this with the current code? If not I will start looking into implementing it and posting a pull request. Martynas -- 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]. For more options, visit https://groups.google.com/groups/opt_out.
