Sign inSign up

sdesbure/ansible-lint

By sdesbure

Updated over 6 years ago

ansible-lint into a docker (used for CI)

Image
0

50K+

sdesbure/ansible-lint repository overview

Ansible Lint Docker

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 image

How to use

Pull image
docker pull sdesbure/ansible-lint

Run container

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

In gitlab ci runner

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

Tag summary

Content type

Image

Digest

Size

69 MB

Last updated

over 6 years ago

docker pull sdesbure/ansible-lint