ansible-lint — Ansible playbook and role linter rebased on Red Hat Hardened Images
885
ansible-lint checks Ansible playbooks, roles, and collections for best practices and common mistakes. It applies a profile-based rule set covering YAML style, task structure, module usage, naming conventions, and security hygiene.
This image installs ansible-lint and its dependencies offline from a hash-pinned wheelhouse built against Python 3.13, using Red Hat Hardened Image Python builder and runtime layers. The built image is cosign-signed with a CycloneDX SBOM and SLSA Level 3 provenance attestation attached.
# Lint a playbook
podman run --rm -v "$(pwd):/work:ro,Z" -w /work ansible-lint:<version>-rhhi site.yml
# Lint with offline mode (no galaxy/collection lookups)
podman run --rm -v "$(pwd):/work:ro,Z" -w /work \
-e ANSIBLE_COLLECTIONS_PATH=/dev/null \
ansible-lint:<version>-rhhi site.yml
registry.access.redhat.com/hi/python:3.13-builder (build) and
hi/python:3.13 (runtime) — Red Hat HardenedContent type
Image
Digest
sha256:4d0bcb551…
Size
54.2 MB
Last updated
4 months ago
docker pull timothyswan/ansible-lint:26.4.0-rhhi