include_vars must not be named

This commit is contained in:
Robert Kaussow 2019-01-09 20:44:19 +01:00
parent e81aaa3a72
commit 1ec1dac888

View File

@ -54,7 +54,8 @@ def check_braces_spaces(candidate, settings):
def check_named_task(candidate, settings): def check_named_task(candidate, settings):
tasks, errors = get_normalized_tasks(candidate, settings) tasks, errors = get_normalized_tasks(candidate, settings)
nameless_tasks = ['meta', 'debug', 'include_role', 'import_role', nameless_tasks = ['meta', 'debug', 'include_role', 'import_role',
'include_tasks', 'import_tasks', 'block'] 'include_tasks', 'import_tasks', 'include_vars',
'block']
description = "module '%s' used without name attribute" description = "module '%s' used without name attribute"
if not errors: if not errors: