Adding ansible-lint config; hopefully last fix
ci/woodpecker/push/woodpecker Pipeline was canceled

This commit is contained in:
2026-09-15 23:02:41 -04:00
parent d6682e1ad9
commit f70f95141a
2 changed files with 28 additions and 3 deletions
+19
View File
@@ -0,0 +1,19 @@
# .ansible-lint
---
# Exclude paths from linting
exclude_paths:
- .cache/
- .github/
- tests/
- molecule/
- roles/
# Enable specific profiles (min, basic, moderate, safety, shared, production)
profile: moderate
warn_list:
- skip_this_tag
- experimental
# Set the project directory
project_dir: .
+9 -3
View File
@@ -3,8 +3,14 @@ when:
branch: [main] branch: [main]
steps: steps:
- name: lint-ansible - name: install-roles
image: python:3.14-slim image: ghcr.io/ansible/community-ansible-dev-tools:latest
commands: 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 - ansible-lint --force-color