ansible-lint into a docker (used for CI)
50K+
ansible-lint - https://github.com/willthames/ansible-lint
Latest ansbile-lint release in pip embedded into this docker.
Used to perform ansible linting into gitlab ci runner.
docker pull sdesbure/ansible-lint
Per default, the docker will give you the version number of ansible-lint.
If you want to do linting you'll have to run a specific command:
docker run --rm -v <path for playbook folder to lint>:/playbooks sdesbure/ansible-lint ansible-lint yourplaybook.yaml
Here's an example of a working configuration (that have a lint stage):
ansible_linting
stage: lint
image: sdesbure/ansible-lint
script:
- ansible-lint *.y?ml
Content type
Image
Digest
Size
69 MB
Last updated
over 6 years ago
docker pull sdesbure/ansible-lint