On 3/11/14, 4:57 PM, Brian Coca wrote:
@jesse, actually play_hosts[0] will always give you a 'currently working
host', the list removes hosts that have errored out of the play.

it cannot save you if the target host suddenly becomes an issue, i would
try do/until then.

Oh! That's amazing. I told a small lie in my first mail, the play book currently has:

when: inventory_hostname == hostvars.keys()[0]

because it was written before play_hosts existed. Now that we're going to have access to play_hosts I'll switch all my tasks like this over, and we'll avoid the current issue that came up today.

Thanks for the info!


-jlk

--
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/531FEBD3.7070401%40j2solutions.net.
For more options, visit https://groups.google.com/d/optout.

Reply via email to