Skip to content

Make linter happy

Make linter happy #127

Workflow file for this run

---
name: ansible_lint
on: # yamllint disable-line rule:truthy
[push, workflow_dispatch]
jobs:
lint:
name: Ansible lint
runs-on: self-hosted
steps:
- uses: actions/checkout@v4
- name: Install pip
run: sudo apt-get install pipx -y
- name: Install ansible
run: pipx install --include-deps ansible
- name: Install ansible-lint
run: pipx install ansible-lint
- name: Add pip bin to path
run: echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: Create vault password file
run: echo "${{ secrets.ANSIBLE_VAULT_PASSWORD }}" > vault_pass && chmod go-rwx vault_pass
- name: Run ansible-lint
run: ansible-lint 2>&1 >> $GITHUB_STEP_SUMMARY