On 25. nov. 2016 17:11, Pieter Voet wrote:
I can't use 'set_fact' in the first play, since that will only set the fact
for the hosts specified, i.e. 'host_a'.

Why can't do that?
You can in the second play also access the result variable directly like so
{{ hostvars['host_a']['result'] }}


--
Kai Stian Olstad

--
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/ecb4e600-5c0f-58f9-ad66-a09fd8f25c9c%40olstad.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to