Container image with ansible-lint
10K+
Container image with ansible-lint, built on top of gwerlas/ansible-core.
GitLab Project : yoanncolin/container-images/ansible-lint.
The X.Y.Z tags are immutable ; X.Y, X and latest move to the newest
matching build (scheduled pipelines republish security patch bumps) :
| Version | Tags | Rebuild | Source |
|---|---|---|---|
| 26.9.0 | 26.9.0, 26.9, 26, latest | Weekly | Dockerfile |
| 26.4.0 | 26.4.0, 26.4 | Dockerfile | |
| 25.11.1 | 25.11.1, 25.11, 25 | Dockerfile | |
| 25.11.0 | 25.11.0 | Dockerfile | |
| 24.12.2 | 24.12.2, 24.12, 24 | Dockerfile | |
| 24.10.0 | 24.10.0, 24.10 | Dockerfile | |
| 24.9.2 | 24.9.2, 24.9 | Dockerfile | |
| 24.5.0 | 24.5.0, 24.5 | Dockerfile | |
| 24.2.3 | 24.2.3, 24.2 | Dockerfile | |
| 24.2.2 | 24.2.2 | Dockerfile | |
| 24.2.1 | 24.2.1 | Dockerfile | |
| 6.22.2 | 6.22.2, 6.22, 6 | Dockerfile | |
| 6.22.1 | 6.22.1 | Dockerfile | |
| 6.22.0 | 6.22.0 | Dockerfile | |
| 6.21.1 | 6.21.1, 6.21 | Dockerfile | |
| 6.20.3 | 6.20.3, 6.20 | Dockerfile | |
| 6.20.2 | 6.20.2 | Dockerfile | |
| 6.20.0 | 6.20.0 | Dockerfile | |
| 6.19.0 | 6.19.0, 6.19 | Dockerfile | |
| 6.18.0 | 6.18.0, 6.18 | Dockerfile | |
| 6.17.2 | 6.17.2, 6.17 | Dockerfile | |
| 6.17.1 | 6.17.1 | Dockerfile | |
| 6.16.2 | 6.16.2, 6.16 | Dockerfile | |
| 6.16.0 | 6.16.0 | Dockerfile | |
| 6.15.0 | 6.15.0, 6.15 | Dockerfile | |
| 6.14.6 | 6.14.6, 6.14 | Dockerfile | |
| 6.14.4 | 6.14.4 | Dockerfile | |
| 6.14.3 | 6.14.3 | Dockerfile | |
| 6.9.1 | 6.9.1, 6.9 | Dockerfile | |
| 6.8.7 | 6.8.7, 6.8 | Dockerfile | |
| 6.2.1 | 6.2.1, 6.2 | Dockerfile |
The container runs as the build user (non-root) inherited from the
gwerlas/ansible-core image. When mounting a local directory, make sure it is
readable and writable by that user, or pass your own UID/GID. The default
working directory is /home/build/work.
Basic usage :
docker run -t --rm -v $PWD:/work -w /work gwerlas/ansible-lint ansible-lint
The image ships ansible-core only, so just ansible.builtin is available.
The collections a lint run needs to resolve modules are not baked in: declare
them in the requirements.yml of the project you lint, and ansible-lint
installs them under the project's .ansible/ directory before linting :
---
collections:
- name: community.general
The mounted project must be writable by the build user, and the container
needs network access to Ansible Galaxy.
Gitlab-CI usage :
ansible-lint:
image: gwerlas/ansible-lint
script: ansible-lint
Content type
Image
Digest
sha256:fe1366caa…
Size
73.8 MB
Last updated
about 8 hours ago
docker pull gwerlas/ansible-lint