You have 2 main scopes for variables play scope and host scope. A
variable you define in play A will not be available on play B.

You do have hostvars always available via
hostvars[<hostname>][<varname>], so even if both plays target
different hosts, you can still indirectly reference the var.


-- 
----------
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/CACVha7ek2XecxgD%3DeV6LH9z3Mf1XwFvS%2Bzw2HGbumFOXONeQRg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to