Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions .github/workflows/lint-ansible.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,15 @@ jobs:
id: cache-ansible
uses: actions/cache@v4
with:
path: ansible/.ansible
path: .ansible
key: ansible-${{ runner.os }}-${{ hashFiles('pyproject.toml', 'uv.lock', 'ansible/roles/requirements.yml') }}

- name: Install Ansible Galaxy dependencies
run: cd ansible && ansible-galaxy install -r roles/requirements.yml
run: ansible-galaxy install -r ansible/roles/requirements.yml

- name: Run ansible lint
run: |
cd ansible
# Remove any Vaulted files and Vault configuration
grep -R '$ANSIBLE_VAULT;' --files-with-matches . | xargs rm
sed --in-place '/vault_password_file/d' ansible.cfg
ansible-lint --exclude .ansible
grep -R '$ANSIBLE_VAULT;' --files-with-matches ansible/ | xargs rm
sed --in-place '/vault_password_file/d' ansible/ansible.cfg
ansible-lint --exclude .ansible/ --project-dir ansible/ -c ansible/.ansible-lint ansible/
7 changes: 3 additions & 4 deletions ansible/.ansible-lint
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
---
exclude_paths:
- .github # Not ansible roles
- roles/certbot/vars/main/vault.yml
- ansible/roles/certbot/vars/main/vault.yml
# Submodules
- roles/nftables
- roles/prometheus-postgres-exporter
- ansible/roles/nftables
- ansible/roles/prometheus-postgres-exporter
skip_list:
- fqcn-builtins
- meta-no-info
Expand Down
Loading
Loading