the play_hosts var should have that list (unless you are using serial, which limits it per batch)
On Fri, Mar 18, 2016 at 1:04 PM, Arthur Reyes <[email protected]> wrote: > $ ansible -i INVENTORY all -m setup --limit vm04 --list-hosts > > > On Friday, March 18, 2016 at 3:00:15 PM UTC-5, jocelyn gibart wrote: >> >> Hello dear Ansible wizards >> >> Is there a way to get the list of targetted hosts for a playbook or for a >> role ? >> >> I didnt find any variable or any way to get this. >> >> What I'm looking for is not merely the hosts: value, it is the >> intersection of hosts values and -l ( --limit ) option. >> >> Thank you >> > -- > 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/454039d3-8ba2-40c9-b47f-b45bae0a1246%40googlegroups.com > <https://groups.google.com/d/msgid/ansible-project/454039d3-8ba2-40c9-b47f-b45bae0a1246%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- ---------- 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/CACVha7cp2xy8H463fsQmUK_f8PLwM%2BMLy06JOd%3DR4ECgDP_8_g%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
