Make linter happy #127
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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 |