From 24389782961a49f429add4aba65c04449033d8b6 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..a8b0773 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 "$CI_WORKSPACE/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