From c8568a5c9431b6d3770d555f865b2d88a294e3d8 Mon Sep 17 00:00:00 2001 From: Sam Doran Date: Thu, 30 Jan 2020 11:08:24 -0500 Subject: [PATCH] Add documentation about vars used in roles at the play level (#66907) --- docs/docsite/rst/user_guide/playbooks_reuse_roles.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/docsite/rst/user_guide/playbooks_reuse_roles.rst b/docs/docsite/rst/user_guide/playbooks_reuse_roles.rst index aeac9c71841..89f350c9936 100644 --- a/docs/docsite/rst/user_guide/playbooks_reuse_roles.rst +++ b/docs/docsite/rst/user_guide/playbooks_reuse_roles.rst @@ -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 -------------------------------