Debian Codegraph @

test/integration/targets/include_when_parent_is_static/tasks.yml

raw
1 # intentionally stop execution of the play before reaching the include below
2 # if the include is static as expected it will trigger a syntax error
3 # however, if the include is dynamic a syntax error will not occur
4 - name: EXPECTED SUCCESS
5 fail:
6 msg:
7 This task should never execute.
8 The playbook should 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 import_tasks, which is static, so this include should also be static
12 - import_tasks: syntax_error.yml