Docker image for ansible-lint, a tool that checks Ansible playbooks for best practices
651
Docker image for ansible-lint (https://github.com/ansible/ansible-lint), a tool that checks Ansible playbooks for practices and behaviour that could potentially be improved. These analysis can be run from the CLI and inside a CI/CD pipeline (e.g., as a GitLab runner).
This image uses a minimalistic approach. It's built upon Alpine Linux and Python 3, so it has the smallest possible footprint when launched.
$ docker run --rm mablanco/ansible-lint
$ docker run --rm -v <playbooks_dir>:/home/ansible-lint mablanco/ansible-lint --force-color ./playbook.yml
$ docker run --rm -v <playbooks_dir>:/home/ansible-lint mablanco/ansible-lint --force-color $(find . -name "*.yml")
$ docker run --rm -v <playbooks_dir>:/home/ansible-lint mablanco/ansible-lint --force-color $(git ls-files "*.yml")
ansible_linting
stage: lint
image: mablanco/ansible-lint
script:
- *.yml
Content type
Image
Digest
sha256:5ce08421a…
Size
39.3 MB
Last updated
over 1 year ago
docker pull mablanco/ansible-lint