diff --git a/.github/workflows/ansible-lint-sap_maintain_etc_hosts.yml b/.github/workflows/ansible-lint-sap_maintain_etc_hosts.yml index 6f5143c1e..3579ef720 100644 --- a/.github/workflows/ansible-lint-sap_maintain_etc_hosts.yml +++ b/.github/workflows/ansible-lint-sap_maintain_etc_hosts.yml @@ -26,7 +26,24 @@ on: jobs: ansible-lint: - call-ansible-lint-with-role: - uses: sap-linuxlab/community.sap_install/.github/workflows/ansible-lint-sap_reusable_workflow.yml@main + runs-on: ubuntu-latest + + steps: + - name: Check out the code + uses: actions/checkout@main + + - name: Set up Python 3 + uses: actions/setup-python@main with: - role: sap_maintain_etc_hosts + python-version: '3.12' + + - name: Install test dependencies + run: | + pip3 install ansible==9.1.0 + pip3 install ansible-compat==4.1.11 + pip3 install ansible-core==2.16.2 + pip3 install ansible-lint==6.22.2 + + - name: Run ansible-lint + working-directory: /home/runner/work/community.sap_install/community.sap_install/roles/sap_maintain_etc_hosts + run: ansible-lint