ci: remove ansible ssh key from files #18
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-check | |
on: | |
push: | |
paths: | |
- "ansible/**" | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
ansible-lint: | |
runs-on: ubuntu-22.04 | |
defaults: | |
run: | |
working-directory: ./ansible | |
steps: | |
- name: Checkout code | |
uses: actions/[email protected] | |
- name: Install ansible-lint with pip | |
run: | | |
sudo apt update | |
sudo apt install pip git | |
pip install ansible-core ansible-lint | |
- name: Run ansible-lint on our playbook | |
run: | | |
ansible-galaxy collection install -r requirements.yml | |
ansible-lint -v -s --project-dir . |