From 65735a85a6d6eb78e75c992cc5b287a77a4422de Mon Sep 17 00:00:00 2001 From: Wen Liang Date: Wed, 1 Mar 2023 21:14:53 -0500 Subject: [PATCH] ansible-lint: Fix parser-error failure Signed-off-by: Wen Liang --- .ansible-lint | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.ansible-lint b/.ansible-lint index 8823c1f..8a92cfe 100644 --- a/.ansible-lint +++ b/.ansible-lint @@ -1,7 +1,15 @@ --- profile: production +extra_vars: + # In order to fix the ansible-lint 6.x parser-error, the file + # `tests/get_coverage.yml` has to be declared as the playbook and an extra + # variable `test_playbook` has to be defined. The value of the variable + # `test_playbook`is less important which only meets the purpose of passing + # the ansible-lint 6.x check + test_playbook: tests_default.yml kinds: - yaml: "**/meta/collection-requirements.yml" + - playbook: "**/tests/get_coverage.yml" - yaml: "**/tests/collection-requirements.yml" - playbook: "**/tests/tests_*.yml" - playbook: "**/tests/setup-snapshot.yml"