mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-01 12:40:22 -07:00
include_tasks: fix traceback if no file specified (#54044)
This commit is contained in:
parent
7b75563c9b
commit
c5609c51bf
3 changed files with 13 additions and 1 deletions
|
@ -69,7 +69,7 @@ class TaskInclude(Task):
|
|||
raise AnsibleParserError('Invalid options for %s: %s' % (task.action, ','.join(list(bad_opts))), obj=data)
|
||||
|
||||
if not task.args.get('_raw_params'):
|
||||
task.args['_raw_params'] = task.args.pop('file')
|
||||
task.args['_raw_params'] = task.args.pop('file', None)
|
||||
|
||||
apply_attrs = task.args.get('apply', {})
|
||||
if apply_attrs and task.action != 'include_tasks':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue