This commit is contained in:
+9
-3
@@ -3,8 +3,14 @@ when:
|
||||
branch: [main]
|
||||
|
||||
steps:
|
||||
- name: lint-ansible
|
||||
image: python:3.14-slim
|
||||
- name: install-roles
|
||||
image: ghcr.io/ansible/community-ansible-dev-tools:latest
|
||||
commands:
|
||||
- pip install ansible-lint
|
||||
- ansible-galaxy role install -r requirements.yml -p "$CI_WORKSPACE/roles"
|
||||
- ansible-galaxy collection install -r requirements.yml -p "$CI_WORKSPACE/collections"
|
||||
|
||||
- name: lint-ansible
|
||||
image: ghcr.io/ansible/community-ansible-dev-tools:latest
|
||||
commands:
|
||||
- git config --global --add safe.directory "$CI_WORKSPACE"
|
||||
- ansible-lint --force-color
|
||||
|
||||
Reference in New Issue
Block a user