mirror of
https://github.com/ansible/ansible.git
synced 2026-08-02 16:12:06 +02:00
include_tasks: fix traceback if no file specified (#54044)
This commit is contained in:
@@ -42,3 +42,13 @@
|
||||
|
||||
- name: include_tasks + action
|
||||
action: include_tasks tasks1.yml
|
||||
|
||||
- name: test fail as expected without file
|
||||
include_tasks:
|
||||
ignore_errors: yes
|
||||
register: res
|
||||
|
||||
- name: verify fail as expected without file
|
||||
assert:
|
||||
that:
|
||||
- res.msg == 'No include file was specified to the include'
|
||||
|
||||
Reference in New Issue
Block a user