ansible-lintansibleplaybooksroleslint

Run ansible‑lint on playbooks, roles, and collections to catch risky patterns and common mistakes before automated merges or execution.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "ansible-lintansibleplaybooksroleslint" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-38630d9879be3c19158b048356eb94e014cf114cb4c878f951b973253d359b59. Verify the upstream source and version against https://skillhub.cn/skills/user_3c6cb52e/lint-ansible-playbooks-and-roles-before-automation-breaks-in-prod-with-ansible-lint before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Run ansible‑lint on playbooks, roles, and collections to catch risky patterns and common mistakes before automated merges or execution.

0 Downloads

Introduction source: third_party · user_3c6cb52e · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Software, accounts and paid services
Run ansible-lint against playbooks, roles, and collections so risky patterns and common mistakes are caught before automation is merged or executed.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: "在生产环境中使用 ansible-lint 对 Ansible playbooks 和 roles 进行 lint 检查,以防止自动化出现故障"
slug: "lint-ansible-playbooks-and-roles-before-automation-breaks-in-prod-with-ansible-lint"
version: "1.0.0"
displayName: "在生产环境中使用 ansible-lint 对 Ansible playbooks 和 roles 进行 lint 检查,避免自动化出现故障"
summary: "在playbooks、roles和collections上运行ansible-lint,以便在自动化合并或执行之前捕获风险模式和常见错误。"
license: "MIT"
description: "在playbooks、roles和collections上运行ansible-lint,以便在自动化合并或执行之前捕获风险模式和常见错误。"
github_stars: 3856
verification: "security_reviewed"
source: "https://github.com/1991513ccie-png/skills"
author: "1991513ccie-png"
publisher_type: "individual"
category: "Code Quality & Review"
framework: "Multi-Framework"
tool_ecosystem:
  github_repo: "1991513ccie-png/skills"
  github_stars: 3856

在生产环境中使用 ansible-lint 对 Ansible playbooks 和 roles 进行 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:

Documentation

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value75/100

Highlights

  • 提供 ansible-lint 检查能力,有效帮助用户在自动化合并或执行前捕获风险模式和常见错误
  • 面向 Ansible 运维场景,具有明确的实用价值和广泛受众
Trigger Precision65/100

Areas to improve

  • 触发词未显式定义 Reported severity: Minor

    description 描述了功能但未提供明确的触发关键词,用户可能难以准确触发

    Recommendation: 在 frontmatter 或 description 中补充明确的触发词,如 'ansible lint'、'playbook check' 等

Highlights

  • 功能描述清晰,用户能理解其核心用途
Structure and Standards55/100

Areas to improve

  • 文档结构不完整 Reported severity: Minor

    缺少清晰的步骤划分和出口条件说明

    Recommendation: 按照 Phase 结构组织文档,明确每个步骤的输入、处理和输出

Highlights

  • 包含基本的 Prerequisites 和 Installation 说明
  • 提供了官方文档链接,便于用户深入学习
Execution Reliability60/100

Areas to improve

  • 缺少异常处理说明 Reported severity: Minor

    未说明当 ansible-lint 检查失败时的处理流程和错误码含义

    Recommendation: 补充错误处理机制,说明不同错误码的含义和应对措施

Highlights

  • 明确了基本依赖要求(Python, Ansible, ansible-lint)
  • 提供了上游文档链接,便于用户参考官方最佳实践
Evidence Verifiability (mean of the first four)64/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

Domains or addresses referenced in the document

These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.

  • ansible.readthedocs.io
  • github.com
  • raw.githubusercontent.com

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

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

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.