| Name | ansible-lint JSON |
| Version |
25.9.2
JSON |
| download |
| home_page | None |
| Summary | Checks playbooks for practices and behavior that could potentially be improved |
| upload_time | 2025-10-08 12:26:32 |
| maintainer | None |
| docs_url | None |
| author | None |
| requires_python | >=3.10 |
| license | None |
| keywords |
ansible
lint
|
| VCS |
 |
| bugtrack_url |
|
| requirements |
No requirements were recorded.
|
| Travis-CI |
No Travis.
|
| coveralls test coverage |
No coveralls.
|
[](https://pypi.org/project/ansible-lint)
[](https://ansible.readthedocs.io/projects/lint/rules/)
[](https://forum.ansible.com/tag/ansible-lint)
[](https://github.com/pre-commit/pre-commit)
# Ansible-lint
`ansible-lint` checks playbooks for practices and behavior that could
potentially be improved. As a community-backed project ansible-lint supports
only the last two major versions of Ansible.
[Visit the Ansible Lint docs site](https://ansible.readthedocs.io/projects/lint/)
# Using ansible-lint as a GitHub Action
This action allows you to run `ansible-lint` on your codebase without having to
install it yourself.
```yaml
# .github/workflows/ansible-lint.yml
name: ansible-lint
on:
pull_request:
branches: ["main", "stable", "release/v*"]
jobs:
build:
name: Ansible Lint # Naming the build is important to use it as a status check
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Run ansible-lint
uses: ansible/ansible-lint@main # or vX.X.X version
# optional (see below):
with:
args: ""
gh_action_ref: "<version - e.g. `v25.5.0`>" # Not recommended for non-composite action use
setup_python: "true"
working_directory: ""
requirements_file: ""
```
By default, the workflow uses ansible-lint installed from `main`. For production or stable workflows, it is recommended to specify a particular release tag (in format v.X.X.X).
All the arguments are optional:
- `args`: Arguments to be passed to ansible-lint command.
- `gh_action_ref`: The git branch, tag, or commit to use for ansible-lint.
Not recommended for standard use - only use with composite actions where
`GH_ACTION_REF` is set to the parent action version.
- `requirements_file`: Path to the requirements.yml file to install role and
collection dependencies.
- `setup_python`: If python should be installed. Default is `true`.
- `working_directory`: The directory where to run ansible-lint from. Default is
`github.workspace`. Needed if you want to lint only a subset of
your repository.
For more details, see [ansible-lint-action].
# Communication
Refer to the
[Talk to us](https://ansible.readthedocs.io/projects/lint/contributing/#talk-to-us)
section of the Contributing guide to find out how to get in touch with us.
You can also find more information in the
[Ansible communication guide](https://docs.ansible.com/ansible/devel/community/communication.html).
# Contributing
Please read [Contribution guidelines] if you wish to contribute.
# Code of Conduct
Please see the
[Ansible Community Code of Conduct](https://docs.ansible.com/ansible/latest/community/code_of_conduct.html).
# Licensing
The ansible-lint project is distributed as [GPLv3] due to use of [GPLv3] runtime
dependencies, like `ansible` and `yamllint`.
For historical reasons, its own code-base remains licensed under a more liberal
[MIT] license and any contributions made are accepted as being made under
original [MIT] license.
# Authors
ansible-lint was created by [Will Thames] and is now maintained as part of the [Ansible]
by [Red Hat] project.
[ansible]: https://ansible.com
[contribution guidelines]:
https://ansible.readthedocs.io/projects/lint/contributing
[gplv3]: https://github.com/ansible/ansible-lint/blob/main/COPYING
[mit]:
https://github.com/ansible/ansible-lint/blob/main/docs/licenses/LICENSE.mit.txt
[red hat]: https://redhat.com
[will thames]: https://github.com/willthames
[ansible-lint-action]:
https://ansible.readthedocs.io/projects/lint/installing/#installing-from-source-code
Raw data
{
"_id": null,
"home_page": null,
"name": "ansible-lint",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.10",
"maintainer_email": "Ansible by Red Hat <info@ansible.com>",
"keywords": "ansible, lint",
"author": null,
"author_email": "Will Thames <will@thames.id.au>",
"download_url": "https://files.pythonhosted.org/packages/17/dd/6c1dd87464488a8d848d3e9dc5b833f0328ce9b4b7fcb6511a702d4cf0cd/ansible_lint-25.9.2.tar.gz",
"platform": null,
"description": "[](https://pypi.org/project/ansible-lint)\n[](https://ansible.readthedocs.io/projects/lint/rules/)\n[](https://forum.ansible.com/tag/ansible-lint)\n[](https://github.com/pre-commit/pre-commit)\n\n# Ansible-lint\n\n`ansible-lint` checks playbooks for practices and behavior that could\npotentially be improved. As a community-backed project ansible-lint supports\nonly the last two major versions of Ansible.\n\n[Visit the Ansible Lint docs site](https://ansible.readthedocs.io/projects/lint/)\n\n# Using ansible-lint as a GitHub Action\n\nThis action allows you to run `ansible-lint` on your codebase without having to\ninstall it yourself.\n\n```yaml\n# .github/workflows/ansible-lint.yml\nname: ansible-lint\non:\n pull_request:\n branches: [\"main\", \"stable\", \"release/v*\"]\njobs:\n build:\n name: Ansible Lint # Naming the build is important to use it as a status check\n runs-on: ubuntu-24.04\n steps:\n - uses: actions/checkout@v4\n - name: Run ansible-lint\n uses: ansible/ansible-lint@main # or vX.X.X version\n # optional (see below):\n with:\n args: \"\"\n gh_action_ref: \"<version - e.g. `v25.5.0`>\" # Not recommended for non-composite action use\n setup_python: \"true\"\n working_directory: \"\"\n requirements_file: \"\"\n```\n\nBy default, the workflow uses ansible-lint installed from `main`. For production or stable workflows, it is recommended to specify a particular release tag (in format v.X.X.X).\n\nAll the arguments are optional:\n\n- `args`: Arguments to be passed to ansible-lint command.\n- `gh_action_ref`: The git branch, tag, or commit to use for ansible-lint.\n Not recommended for standard use - only use with composite actions where\n `GH_ACTION_REF` is set to the parent action version.\n- `requirements_file`: Path to the requirements.yml file to install role and\n collection dependencies.\n- `setup_python`: If python should be installed. Default is `true`.\n- `working_directory`: The directory where to run ansible-lint from. Default is\n `github.workspace`. Needed if you want to lint only a subset of\n your repository.\n\n\nFor more details, see [ansible-lint-action].\n\n# Communication\n\nRefer to the\n[Talk to us](https://ansible.readthedocs.io/projects/lint/contributing/#talk-to-us)\nsection of the Contributing guide to find out how to get in touch with us.\n\nYou can also find more information in the\n[Ansible communication guide](https://docs.ansible.com/ansible/devel/community/communication.html).\n\n# Contributing\n\nPlease read [Contribution guidelines] if you wish to contribute.\n\n# Code of Conduct\n\nPlease see the\n[Ansible Community Code of Conduct](https://docs.ansible.com/ansible/latest/community/code_of_conduct.html).\n\n# Licensing\n\nThe ansible-lint project is distributed as [GPLv3] due to use of [GPLv3] runtime\ndependencies, like `ansible` and `yamllint`.\n\nFor historical reasons, its own code-base remains licensed under a more liberal\n[MIT] license and any contributions made are accepted as being made under\noriginal [MIT] license.\n\n# Authors\n\nansible-lint was created by [Will Thames] and is now maintained as part of the [Ansible]\nby [Red Hat] project.\n\n[ansible]: https://ansible.com\n[contribution guidelines]:\n https://ansible.readthedocs.io/projects/lint/contributing\n[gplv3]: https://github.com/ansible/ansible-lint/blob/main/COPYING\n[mit]:\n https://github.com/ansible/ansible-lint/blob/main/docs/licenses/LICENSE.mit.txt\n[red hat]: https://redhat.com\n[will thames]: https://github.com/willthames\n[ansible-lint-action]:\n https://ansible.readthedocs.io/projects/lint/installing/#installing-from-source-code\n",
"bugtrack_url": null,
"license": null,
"summary": "Checks playbooks for practices and behavior that could potentially be improved",
"version": "25.9.2",
"project_urls": {
"changelog": "https://github.com/ansible/ansible-lint/releases",
"documentation": "https://ansible.readthedocs.io/projects/lint/",
"homepage": "https://github.com/ansible/ansible-lint",
"repository": "https://github.com/ansible/ansible-lint"
},
"split_keywords": [
"ansible",
" lint"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "ea5bbaa39ad553aa62acf06d2daf97eb8e8d8df7c6d95278c8d5b2d7a3554a1d",
"md5": "0d0bee9b298139888ee93620fcfbd6de",
"sha256": "3a4b273b549973c62279de75374138be39b555191227b7c92944428f9d81018d"
},
"downloads": -1,
"filename": "ansible_lint-25.9.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "0d0bee9b298139888ee93620fcfbd6de",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.10",
"size": 322398,
"upload_time": "2025-10-08T12:26:30",
"upload_time_iso_8601": "2025-10-08T12:26:30.568934Z",
"url": "https://files.pythonhosted.org/packages/ea/5b/baa39ad553aa62acf06d2daf97eb8e8d8df7c6d95278c8d5b2d7a3554a1d/ansible_lint-25.9.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "17dd6c1dd87464488a8d848d3e9dc5b833f0328ce9b4b7fcb6511a702d4cf0cd",
"md5": "cb4e9671e5c5a6ba1ea7f10b37b3fe08",
"sha256": "0eea8a5d17dd328bef12e7c9b6eb8714ba03fb1af62d9c700bf46e4858d1a6a4"
},
"downloads": -1,
"filename": "ansible_lint-25.9.2.tar.gz",
"has_sig": false,
"md5_digest": "cb4e9671e5c5a6ba1ea7f10b37b3fe08",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10",
"size": 707230,
"upload_time": "2025-10-08T12:26:32",
"upload_time_iso_8601": "2025-10-08T12:26:32.864062Z",
"url": "https://files.pythonhosted.org/packages/17/dd/6c1dd87464488a8d848d3e9dc5b833f0328ce9b4b7fcb6511a702d4cf0cd/ansible_lint-25.9.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-10-08 12:26:32",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "ansible",
"github_project": "ansible-lint",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "ansible-lint"
}