Skip to content

Switch to using linters from apt #58

Switch to using linters from apt

Switch to using linters from apt #58

Workflow file for this run

---
name: Lint Yaml
on: [pull_request, workflow_dispatch]
jobs:
ansible-lint:
name: Ansible Lint # Naming the build is important to use it as a status check
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v6
- name: Run ansible-lint
uses: ansible/ansible-lint@main # or vX.X.X version
# optional (see below):
with:
args: ""
setup_python: "true"
python_version: "3.14"
working_directory: ""
requirements_file: ""
lint:
name: lint
runs-on: ubuntu-26.04
defaults:
run:
shell: bash
steps:
- name: Checkout
uses: actions/checkout@v6
- name: debug
run: |
whereis ansible
ls /usr/bin/python*
- name: Install linter prequisites
run: |
sudo apt-get update
sudo apt-get install ansible ansible-lint yamllint --yes --no-install-recommends
- name: Run yamllint
run: yamllint .
- name: Run ansible-lint
run: ansible-lint roles/