00d00f797e
Ansible Lint / lint (push) Successful in 12s
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>
33 lines
860 B
YAML
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
|