From 0efe2c30d24be766ebe0bf8112931f910d5a9493 Mon Sep 17 00:00:00 2001 From: Rafael Guterres Jeffman <rjeffman@redhat.com> Date: Thu, 14 Apr 2022 18:27:25 -0300 Subject: [PATCH] ansible-lint: Identify env_*.yml and tasks_*.yml as task files. Failing to identify task files included by playbooks raised false positives when runnnig ansible lint. This change force ansible-lint to correctly identify YAML files named "env_*.yml" or "tasks_*.yml" as task files that are imported by other playbooks, and treat them accordingly. --- .ansible-lint | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.ansible-lint b/.ansible-lint index e71a16f8..9a4af927 100644 --- a/.ansible-lint +++ b/.ansible-lint @@ -14,6 +14,8 @@ exclude_paths: kinds: - playbook: '**/tests/**/test_*.yml' - playbook: '**/playbooks/**/*.yml' + - tasks: '**/tasks_*.yml' + - tasks: '**/env_*.yml' parseable: true -- GitLab