So your expectation is incorrect, as any play level variable modified
during the play is still modified during any subsequent part of the
play, includes are not namespaced, in a play you only have 2 scopes:
play vars and host vars, both carry forward any changes made at any
point in the play. In the case of hostvars they'll carry over to
subsequent plays also.

What you want is 2 plays that set the same default vars and you can do
include #1 in the first play and include #2 in the 2nd, then the vars
will look like what you expect.

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

Reply via email to