mirror of https://github.com/ansible/ansible.git
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.
(cherry picked from commit 1503805b70
)
pull/83889/head
parent
b0c737dc69
commit
8d01d0d39d
@ -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