# Lint Ansible playbooks and roles before automation breaks in prod with ansible-lint

> Run ansible-lint against playbooks, roles, and collections so risky patterns and common mistakes are caught before automation is merged or executed.

- Skill: `agentskillexchange/lint-ansible-playbooks-and-roles-before-automation-breaks-in` (Agent Skill)
- Install (CLI): `npx skillmds@latest add agentskillexchange/lint-ansible-playbooks-and-roles-before-automation-breaks-in`
- Raw SKILL.md: https://api.skillmd.com/api/skills/agentskillexchange/lint-ansible-playbooks-and-roles-before-automation-breaks-in/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: DevOps & Infra
- Author: agentskillexchange (https://skillmd.com/u/agentskillexchange)
- Updated: 2026-09-08
- Page: https://skillmd.com/skills/agentskillexchange/lint-ansible-playbooks-and-roles-before-automation-breaks-in

---


# Lint Ansible playbooks and roles before automation breaks in prod with ansible-lint

Run ansible-lint against playbooks, roles, and collections so risky patterns and common mistakes are caught before automation is merged or executed.

## Prerequisites

Python, Ansible, ansible-lint

## Installation

Requirements and caveats from upstream:
- setup_python: If python should be installed. Default is true.
- python_version: The version of python to install. Default is 3.14.

Basic usage or getting-started notes:
- This action allows you to run ansible-lint on your codebase without having to
- yaml
- # .github/workflows/ansible-lint.yml

- Source: https://github.com/ansible/ansible-lint
- Extracted from upstream docs: https://raw.githubusercontent.com/ansible/ansible-lint/HEAD/README.md

## Documentation

- https://ansible.readthedocs.io/projects/lint/

## Source

- [Agent Skill Exchange](https://agentskillexchange.com/skills/lint-ansible-playbooks-and-roles-before-automation-breaks-in-prod-with-ansible-lint/)

