Skip to content

add ansible-lint to CI #7

add ansible-lint to CI

add ansible-lint to CI #7

Workflow file for this run

# .github/workflows/ansible-lint.yml
name: ansible-lint
on:
pull_request:
branches: ["master"]
push:
jobs:
build:
name: Ansible Lint # Naming the build is important to use it as a status check
runs-on: ubuntu-latest
container: almalinux:9
steps:
- uses: actions/checkout@v4
- name: Install EPEL
run: dnf -y install epel-release
- name: Install dnf dependencies
run: dnf -y install ansible-core wget
- name: Install ansible-galaxy dependencies
run: ansible-galaxy install -r requirements.yml
- name: Run ansible-lint
uses: ansible/ansible-lint@main # or version tag instead of 'main'