Files
Adyrem 60856b5b65 Fix authorized_key FQCN and add ansible.posix to CI collections
ansible.posix.authorized_key replaces the bare module name removed
in ansible-core 2.x.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-13 18:00:11 +02:00

33 lines
860 B
YAML

name: Ansible Lint
on:
push:
paths:
- 'ansible/**'
- '.gitea/workflows/lint.yml'
pull_request:
paths:
- 'ansible/**'
jobs:
lint:
runs-on: native
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup vault password
run: |
mkdir -p ~/.config/homelab
echo '${{ secrets.VAULT_PASSWORD }}' > ~/.config/homelab/vault_pass
chmod 600 ~/.config/homelab/vault_pass
- name: Install ansible-lint and collections
run: |
python3 -m pip install ansible-lint --break-system-packages --quiet
~/.local/bin/ansible-galaxy collection install community.general community.postgresql ansible.posix
- name: Run ansible-lint
working-directory: ansible
run: ~/.local/bin/ansible-lint --profile=min playbooks/site.yml