summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/includes/roles/test_includes/tasks/branch_toplevel.yml
diff options
context:
space:
mode:
Diffstat (limited to 'test/integration/targets/includes/roles/test_includes/tasks/branch_toplevel.yml')
-rw-r--r--test/integration/targets/includes/roles/test_includes/tasks/branch_toplevel.yml11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/integration/targets/includes/roles/test_includes/tasks/branch_toplevel.yml b/test/integration/targets/includes/roles/test_includes/tasks/branch_toplevel.yml
new file mode 100644
index 0000000..30cd6f2
--- /dev/null
+++ b/test/integration/targets/includes/roles/test_includes/tasks/branch_toplevel.yml
@@ -0,0 +1,11 @@
+# 'canary2' used instead of 'canary', otherwise a "recursive loop detected in
+# template string" occurs when both includes use static=yes
+- import_tasks: leaf_sublevel.yml
+ vars:
+ canary2: '{{ canary }}'
+ when: 'nested_include_static|bool' # value for 'static' can not be a variable, hence use 'when'
+
+- include_tasks: leaf_sublevel.yml
+ vars:
+ canary2: '{{ canary }}'
+ when: 'not nested_include_static|bool'