From 47ffb6d542126f553a056045265c6a3e7b0634cc Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Tue, 1 Nov 2016 14:58:17 -0400 Subject: [PATCH] minor updates to include docs --- lib/ansible/modules/utilities/logic/include.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/ansible/modules/utilities/logic/include.py b/lib/ansible/modules/utilities/logic/include.py index c251c501dd0..bdca4298bdd 100644 --- a/lib/ansible/modules/utilities/logic/include.py +++ b/lib/ansible/modules/utilities/logic/include.py @@ -15,9 +15,10 @@ author: module: include short_description: include a play or task list. description: - - Loads a file with a list of plays or tasks to be executed in the current playbook. + - Includes a file with a list of plays or tasks to be executed in the current playbook. - Files with a list of plays can only be included at the top level, lists of tasks can only be included where tasks normally run (in play). - - Before 2.0 all includes were 'static', executed at play load time. + - Before 2.0 all includes were 'static', executed at play compile time. + - Static includes are not subject to most directives, for example, loops or conditionals, they are applied instead to each inherited task. - Since 2.0 task includes are dynamic and behave more like real tasks. This means they can be looped, skipped and use variables from any source. Ansible tries to auto detect this, use the `static` directive (new in 2.1) to bypass autodetection. version_added: "0.6"