fix: using native python for running ansible lint
This commit is contained in:
14
.github/workflows/deployment.yml
vendored
14
.github/workflows/deployment.yml
vendored
@@ -60,9 +60,13 @@ jobs:
|
|||||||
- name: Checkout to Repository
|
- name: Checkout to Repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Lint Playbooks
|
- name: Use Python 3.13
|
||||||
uses: ansible/ansible-lint@main
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
setup_python: true
|
python-version: '3.13'
|
||||||
working_directory: ./playbooks
|
cache: pip
|
||||||
requirements_file: ../requirements.txt
|
- run: pip install -r requirements.txt
|
||||||
|
|
||||||
|
- name: Lint Playbooks
|
||||||
|
run: ansible-lint
|
||||||
|
working-directory: ./playbooks
|
||||||
|
|||||||
Reference in New Issue
Block a user