Skip to content

chore(deps): pin dependencies #198

chore(deps): pin dependencies

chore(deps): pin dependencies #198

Workflow file for this run

---
name: Ansible
on: [push]
# From https://dev.to/koh_sh/automatic-ansible-lint-with-github-actions-52oe
jobs:
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: ['3.12']
ansible-version: [9.1.0]
steps:
- uses: actions/checkout@50fbc622fc4ef5163becd7fab6573eac35f8462e # v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@0f07f7f756721ebd886c2462646a35f78a8bc4de # v1
with:
python-version: ${{ matrix.python-version }}
- name: Install Ansible ${{ matrix.ansible-version }}
run: |
python -m pip install --upgrade pip
pip install yamllint ansible==${{ matrix.ansible-version }}
- name: Lint playbook
run: |
ansible-galaxy role install -r requirements.yml
ansible-galaxy collection install -r requirements.yml
ansible-playbook playbooks/dell/main.yaml --syntax-check
ansible-playbook playbooks/gop/main.yml --syntax-check
yamllint .