---
title: "Lint Ansible playbooks and roles before automation breaks in prod with ansible-lint"
description: "Run ansible-lint against playbooks, roles, and collections so risky patterns and common mistakes are caught before automation is merged or executed."
verification: "listed"
source: "https://github.com/ansible/ansible-lint"
author: "Ansible community"
publisher_type: "open_source"
category:
  - "Code Quality & Review"
framework:
  - "Multi-Framework"
tool_ecosystem:
  github_repo: "ansible/ansible-lint"
  github_stars: 3856
---

# 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

Choose whichever fits your setup:

1. Copy this skill folder into your local skills directory.
2. Clone the repo and symlink or copy the skill into your agent workspace.
3. Add the repo as a git submodule if you manage shared skills centrally.
4. Install it through your internal provisioning or packaging workflow.
5. Download the folder directly from GitHub and place it in your skills collection.

Install command or upstream instructions:

```
Install ansible-lint in the target environment, then run it against the repository root or the specific playbook, role, or collection that needs review.
```

## 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/)
