Fix ansible-lint config #10
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: push | |
jobs: | |
build: | |
name: Ansible Lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Create vault_pass file | |
env: | |
VAULT_PASS: ${{ secrets.VAULT_PASSWORD }} | |
run: | | |
touch .vault_pass | |
echo $VAULT_PASS >> .vault_pass | |
shell: bash | |
- name: Install Pipx | |
shell: bash | |
run: | | |
sudo apt update | |
sudo apt install -y pipx | |
sudo pipx ensurepath --global | |
sudo pipx install --include-deps ansible ansible-lint | |
- name: Install roles from Galaxy | |
shell: bash | |
run : | | |
ansible-galaxy install -r roles/requirements.yml -p roles/galaxy | |
- name: Install collections from Galaxy | |
shell: bash | |
run: | | |
ansible-galaxy collection install community.docker ansible.posix community.general --force | |
- name: Run ansible-lint | |
shell: bash | |
run: | | |
ansible-lint |