I understand that, but it seems that each play can't have a different hosts 
set.  That is, I would like the first play to have "localhost" as the hosts 
and the second play to have hosts dynamically set to whatever the first 
play says it is.

-Tristan


On Friday, September 23, 2016 at 8:28:31 PM UTC-7, Brian Coca wrote:
>
> A playbook can have multiple plays:
>
> - hosts: host_for_play_1
>   tasks:
>    - debug: msg='play 1 task'
> ​
> ​    ...
>
> ​
> ​- hosts: host_for_play_2
>   tasks:
>    - debug: msg='play 2 task'​
>     ....
>
>
> ----------
> 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/f5d68ee0-4b88-481a-89f8-b7b8710d4604%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to