From 1ec1dac888db0d3ab4680bc0d003cf385b491b43 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Wed, 9 Jan 2019 20:44:19 +0100 Subject: [PATCH] include_vars must not be named --- ansiblelater/rules/ansiblefiles.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ansiblelater/rules/ansiblefiles.py b/ansiblelater/rules/ansiblefiles.py index ab197b0..38fb992 100644 --- a/ansiblelater/rules/ansiblefiles.py +++ b/ansiblelater/rules/ansiblefiles.py @@ -54,7 +54,8 @@ def check_braces_spaces(candidate, settings): def check_named_task(candidate, settings): tasks, errors = get_normalized_tasks(candidate, settings) 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" if not errors: