summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/includes/roles/test_includes/tasks/branch_toplevel.yml
blob: 30cd6f287885ce9944a405d3697c2f2f4ea96aea (plain)
1
2
3
4
5
6
7
8
9
10
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'