Sign inSign up

mablanco/ansible-lint

By mablanco

•Updated over 1 year ago

Docker image for ansible-lint, a tool that checks Ansible playbooks for best practices

Image
0

651

mablanco/ansible-lint repository overview

⁠ansible-lint

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.

⁠How to use this image

⁠Show help
$ docker run --rm mablanco/ansible-lint
⁠Check a playbook
$ docker run --rm -v <playbooks_dir>:/home/ansible-lint mablanco/ansible-lint --force-color ./playbook.yml
⁠Batch check with find
$ docker run --rm -v <playbooks_dir>:/home/ansible-lint mablanco/ansible-lint --force-color $(find . -name "*.yml")
⁠Batch check with git ls-files
$ docker run --rm -v <playbooks_dir>:/home/ansible-lint mablanco/ansible-lint --force-color $(git ls-files "*.yml")
⁠As Gitlab runner
ansible_linting
  stage: lint
  image: mablanco/ansible-lint
  script:
    - *.yml

Tag summary

Content type

Image

Digest

sha256:5ce08421a…

Size

39.3 MB

Last updated

over 1 year ago

docker pull mablanco/ansible-lint