From ed9474fad333567e1676d1ab845a32c3f7c9a37e Mon Sep 17 00:00:00 2001 From: Gregory Ballantine Date: Tue, 15 Sep 2026 20:47:54 -0400 Subject: [PATCH] Updating Woodpecker CI config to handle role installs --- .woodpecker.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index b9f96ae..347563f 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -3,8 +3,13 @@ when: branch: [main] steps: - - name: linter - image: python:3.14-slim + - name: install-roles + image: ghcr.io/ansible/community-ansible-dev-tools:latest commands: - - pip install --no-cache-dir ansible-lint - - ansible-lint --offline + - ansible-galaxy role install -r requirements.yml -p ~/.ansible/roles + + - name: lint-ansible + image: ghcr.io/ansible/community-ansible-dev-tools:latest + commands: + - git config --global --add safe.directory "$CI_WORKSPACE" + - ansible-lint -v --offline