Ansible lint #92
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: | |
branches: | |
- "main" | |
schedule: | |
- cron: "0 0 * * 0" | |
jobs: | |
ansible-lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.13.0" | |
- name: Install Ansible and ansible-lint | |
run: | | |
python -m pip install --upgrade pip | |
pip install ansible ansible-lint | |
- name: Install ansible galaxy roles | |
run: | | |
ansible-galaxy install -r requirements.yml | |
- name: Check versions | |
run: | | |
python --version | |
ansible --version | |
ansible-lint --version | |
- name: Execute ansible-lint | |
run: | | |
make lint |