From 7ba6ae348b61e80d2fda7926ad1ee21f6c479c35 Mon Sep 17 00:00:00 2001 From: Rafael Guterres Jeffman <rjeffman@redhat.com> Date: Wed, 12 Jan 2022 18:54:36 -0300 Subject: [PATCH] Github Workflows: Run ansible-lint without an action. We used a Github Action to run anisble-lint, but it has not have a release since 2019, and has not been updated in a year. This action is showing some issues when evaluating current playbooks. This PR substitute the action previously used with a shell script directly define in the workflow job. The ansible-core version was pinned to the currently available on Fedora 25, 2.11.6. --- .github/workflows/lint.yml | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 96b7f9a8..fcaf9309 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -13,15 +13,9 @@ jobs: with: python-version: "3.x" - name: Run ansible-lint - uses: ansible/ansible-lint-action@master - with: - targets: | - tests/*.yml - tests/*/*.yml - tests/*/*/*.yml - playbooks/*.yml - playbooks/*/*.yml - roles/*/*/*.yml + run: | + pip install ansible-core==2.11.6 ansible-lint + find playbooks roles tests -name '*.yml' ! -name "env_*" ! -name "tasks_*" -exec ansible-lint --force-color {} \+ env: ANSIBLE_MODULE_UTILS: plugins/module_utils ANSIBLE_LIBRARY: plugins/modules -- GitLab