From 070dc9e7b0d10716e74c8badd44684cfdc037ce4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=B6ran=20Gustafsson?= Date: Sat, 5 Mar 2022 16:29:13 +0100 Subject: [PATCH] Added missing 'truthy' setting in YAMLLINT_CONFIG Extended yamllint's truthy setting to be compatible with Ansible playbooks. Allow [tT]rue/[fF]alse/yes/no instead of only true/false. --- src/ansiblelint/yaml_utils.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ansiblelint/yaml_utils.py b/src/ansiblelint/yaml_utils.py index ffdcd5a2bf..30cb6ca12e 100644 --- a/src/ansiblelint/yaml_utils.py +++ b/src/ansiblelint/yaml_utils.py @@ -50,6 +50,9 @@ # you can easily change it or disable in your .yamllint file. line-length: max: 160 + # By default only "false" or "true" is considered truthy. + truthy: + allowed-values: ["true", "True", "false", "False", "yes", "no"] """