diff --git a/.gitea/workflows/ansible.yml b/.gitea/workflows/ansible.yml index d739d2a..66382db 100644 --- a/.gitea/workflows/ansible.yml +++ b/.gitea/workflows/ansible.yml @@ -50,6 +50,7 @@ jobs: - name: ansible-lint run: | export PATH="$HOME/.local/bin:$PATH" + export ANSIBLE_COLLECTIONS_PATH="$PWD/infrastructure/samba-ad/ansible/collections:/root/.ansible/collections" rc=0 for p in infrastructure/openbao infrastructure/samba-ad infrastructure/proxmox; do echo "::group::$p" @@ -58,7 +59,19 @@ jobs: done exit $rc - - name: Test repository-local Ansible collection + collection-test: + runs-on: self-hosted + steps: + - uses: actions/checkout@v4 + + - name: Install ansible-core + run: | + python3 -m pip install --user --break-system-packages \ + --index-url https://pypi.org/simple --quiet uv==0.11.7 + export PATH="$HOME/.local/bin:$PATH" + uv tool install ansible-core --quiet + + - name: Run ansible-test working-directory: infrastructure/samba-ad/ansible/collections/ansible_collections/ddupan/homelab run: | export PATH="$HOME/.local/bin:$PATH"