diff --git a/ansiblelater/rules/CheckDeprecatedBareVars.py b/ansiblelater/rules/CheckDeprecatedBareVars.py index 3d52a15..f3049e8 100644 --- a/ansiblelater/rules/CheckDeprecatedBareVars.py +++ b/ansiblelater/rules/CheckDeprecatedBareVars.py @@ -27,9 +27,9 @@ from ansiblelater.utils import has_glob, has_jinja class CheckDeprecatedBareVars(StandardBase): sid = "ANSIBLE0027" - description = "Bare variables in loops are deprecated" + description = "Deprecated bare variables in loops must not be used" helptext = ( - "bare var '{barevar}' in '{loop_type}' should use full var syntax ('{{{{ {barevar} }}}}') " + "bare var '{barevar}' in '{loop_type}' must use full var syntax ('{{{{ {barevar} }}}}') " "or be converted to a list" ) version = "0.3" diff --git a/docs/content/included_rules/_index.md b/docs/content/included_rules/_index.md index ffaf110..a7cc1a9 100644 --- a/docs/content/included_rules/_index.md +++ b/docs/content/included_rules/_index.md @@ -41,5 +41,6 @@ Reviews are useless without some rules or standards to check against. ansible-la | CheckLocalAction | ANSIBLE0024 | Don't use local_action. | | | CheckRelativeRolePaths | ANSIBLE0025 | Don't use a relative path in a role. | | | CheckChangedInWhen | ANSIBLE0026 | Use handlers instead of `when: changed`. | | +| CheckChangedInWhen | ANSIBLE0027 | Deprecated bare variables in loops must not be used. | | | CheckVersion | ANSIBLE9998 | Standards version should be pinned. | | | CheckDeprecated | ANSIBLE9999 | Deprecated features of `ansible-later` should not be used. | |