The tasks are ALWAYS inside a play so tasks are always in play scope, that of which play they were in, either directly, through role or include/import.
A 'playbook' is generally a list of plays, though some people call 'task list files' playbooks also ... which leads to confusion, but for `import_playbooks` only the former definition is valid. Each play is in their own scope, the data shared between plays comes from either extra_vars or inventory, the latter being able to also keep facts+host scoped vars across plays. 'non host vars' or 'play vars' defined in each play are lost once the play ends. -- ---------- 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/CACVha7dsD_AwkscYz9rGZseikq6rNeWLux4Hp-rF4y8K1ANwxA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
