Brian Coca
unread,Feb 20, 2018, 9:44:38 AM2/20/18Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ansible Project
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