17 lines
539 B
YAML
17 lines
539 B
YAML
when:
|
|
- event: [pull_request, push]
|
|
branch: [main]
|
|
|
|
steps:
|
|
- name: install-roles
|
|
image: ghcr.io/ansible/community-ansible-dev-tools:latest
|
|
commands:
|
|
- 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
|