Add documentation about vars used in roles at the play level (#66907)

This commit is contained in:
Sam Doran 2020-01-30 11:08:24 -05:00 committed by GitHub
parent adf73d47ec
commit c8568a5c94
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -158,6 +158,8 @@ You can pass other keywords to the ``roles`` option:
When you add a tag to the ``role`` option, Ansible applies the tag to ALL tasks within the role.
When using ``vars:`` within the ``roles:`` section of a playbook, the variables are added to the play variables, making them available to all tasks within the play before and after the role. This behavior can be changed by :ref:`DEFAULT_PRIVATE_ROLE_VARS`.
Including roles: dynamic re-use
-------------------------------