Debian Codegraph @

test/integration/targets/include_when_parent_is_dynamic/tasks.yml

raw
1 # intentionally stop execution of the play before reaching the include below
2 # if the include is dynamic as expected it will not trigger a syntax error
3 # however, if the include is static a syntax error will occur
4 - name: EXPECTED FAILURE
5 fail:
6 msg:
7 This task should always execute.
8 The playbook would have failed due to a syntax error in 'syntax_error.yml' when attempting a static include of that file.
9
10 # perform an include task which should be static if all of the task's parents are static, otherwise it should be dynamic
11 # this file was loaded using include_tasks, which is dynamic, so this include should also be dynamic
12 - include_tasks: syntax_error.yml