mirror of https://github.com/ansible/ansible.git
Add location on include_tasks fail inside include (#83876)
Adds the datastore details to the parser error when attempting to include tasks that contain include_tasks without a filename set. This change will now display the exact location of the include_tasks that failed like any normal syntax error.pull/83760/head
parent
4346430003
commit
1503805b70
@ -0,0 +1,4 @@
|
|||||||
|
bugfixes:
|
||||||
|
- >-
|
||||||
|
include_tasks - Display location when attempting to load a task list where ``include_*`` did not specify any value -
|
||||||
|
https://github.com/ansible/ansible/issues/83874
|
@ -0,0 +1,5 @@
|
|||||||
|
- name: ping task
|
||||||
|
ansible.builtin.ping:
|
||||||
|
|
||||||
|
- name: invalid include_task definition
|
||||||
|
ansible.builtin.include_tasks:
|
@ -0,0 +1,7 @@
|
|||||||
|
- name: Test include failure with invalid included include_task
|
||||||
|
hosts: localhost
|
||||||
|
gather_facts: false
|
||||||
|
|
||||||
|
tasks:
|
||||||
|
- ansible.builtin.include_tasks:
|
||||||
|
file: null_filename/tasks.yml
|
Loading…
Reference in New Issue