mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
plugins/strategy: added significant details to parser error message.
See discussion at https://github.com/ansible/ansible/issues/13753
This commit is contained in:
parent
d49b11e996
commit
3201f5d90e
1 changed files with 1 additions and 1 deletions
|
@ -492,7 +492,7 @@ class StrategyBase:
|
||||||
tags = [ tags ]
|
tags = [ tags ]
|
||||||
if len(tags) > 0:
|
if len(tags) > 0:
|
||||||
if len(b._task_include.tags) > 0:
|
if len(b._task_include.tags) > 0:
|
||||||
raise AnsibleParserError("Include tasks should not specify tags in more than one way (both via args and directly on the task)",
|
raise AnsibleParserError("Include tasks should not specify tags in more than one way (both via args and directly on the task). Mixing tag specify styles is prohibited for whole import hierarchy, not only for single import statement",
|
||||||
obj=included_file._task._ds)
|
obj=included_file._task._ds)
|
||||||
display.deprecated("You should not specify tags in the include parameters. All tags should be specified using the task-level option")
|
display.deprecated("You should not specify tags in the include parameters. All tags should be specified using the task-level option")
|
||||||
b._task_include.tags = tags
|
b._task_include.tags = tags
|
||||||
|
|
Loading…
Reference in a new issue