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.
This commit is contained in:
Rafael Guterres Jeffman
2022-04-14 18:27:25 -03:00
parent 9b020a56f3
commit 0efe2c30d2

View File

@@ -14,6 +14,8 @@ exclude_paths:
kinds:
- playbook: '**/tests/**/test_*.yml'
- playbook: '**/playbooks/**/*.yml'
- tasks: '**/tasks_*.yml'
- tasks: '**/env_*.yml'
parseable: true