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