From 45bacab8a00c49236959dabc9140ca2217d52ea2 Mon Sep 17 00:00:00 2001 From: Suguru Hirahara Date: Wed, 27 Nov 2024 00:23:52 +0900 Subject: [PATCH 1/3] Replace ansible-community/ansible-lint-action with ansible/ansible-lint ansible-community/ansible-lint-action was deprecated on Aug 2, 2023, and it recommends to use the current Github action here: https://github.com/marketplace/actions/run-ansible-lint Signed-off-by: Suguru Hirahara --- .github/workflows/matrix.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/matrix.yml b/.github/workflows/matrix.yml index de1455688c9..8a9cdef965e 100644 --- a/.github/workflows/matrix.yml +++ b/.github/workflows/matrix.yml @@ -21,6 +21,6 @@ jobs: - name: Check out uses: actions/checkout@v4 - name: Run ansible-lint - uses: ansible-community/ansible-lint-action@v6.17.0 + uses: ansible/ansible-lint@v24.10.0 with: path: roles/custom From 8df99b3e1633e8d641ed52ac4f2a1483eae5f7d3 Mon Sep 17 00:00:00 2001 From: Slavi Pantaleev Date: Tue, 26 Nov 2024 18:11:51 +0200 Subject: [PATCH 2/3] Define requirements_file argument, remove useless path argument Ref: https://ansible.readthedocs.io/projects/lint/installing/#installing-ansible-lint-as-a-github-action --- .github/workflows/matrix.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/matrix.yml b/.github/workflows/matrix.yml index 8a9cdef965e..2b235ea21a4 100644 --- a/.github/workflows/matrix.yml +++ b/.github/workflows/matrix.yml @@ -23,4 +23,4 @@ jobs: - name: Run ansible-lint uses: ansible/ansible-lint@v24.10.0 with: - path: roles/custom + requirements_file: requirements.yml From fbaa116dfa143c03cd6aaaca0be30d90c64d9f88 Mon Sep 17 00:00:00 2001 From: Slavi Pantaleev Date: Tue, 26 Nov 2024 18:20:09 +0200 Subject: [PATCH 3/3] Try to define a custom ANSIBLE_ROLES_PATH .. to tell the Github Action where to install roles via ansible-galaxy. Ref: https://docs.ansible.com/ansible/latest/galaxy/user_guide.html#setting-where-to-install-roles --- .github/workflows/matrix.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/matrix.yml b/.github/workflows/matrix.yml index 2b235ea21a4..0c83a7e2970 100644 --- a/.github/workflows/matrix.yml +++ b/.github/workflows/matrix.yml @@ -22,5 +22,7 @@ jobs: uses: actions/checkout@v4 - name: Run ansible-lint uses: ansible/ansible-lint@v24.10.0 + env: + ANSIBLE_ROLES_PATH: ./roles:roles/galaxy with: requirements_file: requirements.yml