From 8bfba5c0b40de184b4307ace23f7ed56678ba430 Mon Sep 17 00:00:00 2001 From: James Cammarata Date: Fri, 30 Aug 2013 09:20:46 -0500 Subject: [PATCH] Adding documentation for role default variables --- docsite/latest/rst/playbooks.rst | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docsite/latest/rst/playbooks.rst b/docsite/latest/rst/playbooks.rst index 3bd35fdc780..10250614a03 100644 --- a/docsite/latest/rst/playbooks.rst +++ b/docsite/latest/rst/playbooks.rst @@ -546,6 +546,15 @@ If you want to define certain tasks to happen before AND after roles are applied be sure to also tag your pre_tasks and post_tasks and pass those along as well, especially if the pre and post tasks are used for monitoring outage window control or load balancing. +Role Default Variables +`````````````````````` + +.. versionadded:: 1.3 + +Role default variables allow you to set default variables for included or dependedent roles (see below). To create +defaults, simply add a `defaults/main.yml` file in your role directory. These variables will have the lowest priority +of any variables available, and can be easily overridden by any other variable, including inventory variables. + Role Dependencies `````````````````