Yes,it is working, thanks.
This is exactly what I was looking for.
Le vendredi 18 mars 2016 21:27:03 UTC+1, Brian Coca a écrit :
>
> 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
$ 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
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 wrote:
> $ ansible -i INVENTORY all -m setup --limit vm04 --list-hosts
>
>
> On Friday, March 18, 2016 at 3:00:15 PM UTC-5, jocelyn