"All the ansible tools inside one container image."
Pull the latest image from Github or Docker Hub
$ docker pull ghcr.io/josuablejeru/ansible-docker:0.1.0
$ docker pull josuablejeru/ansible-docker:0.1.0
This Image was created with Gitlab and other CI/CD systems in mind. The following is a example for Gitlab:
default:
image:
name: josuablejeru/ansible-docker:latest
entrypoint: [""]
stages:
- linting
yaml-lint:
stage: linting
# Lint all YAML files in a directory
script: yamllint .
ansible-lint:
stage: linting
artifacts:
when: always
reports:
junit: ansible-lint.xml
script:
- ansible-lint -v --show-relpath -f pep8 --nocolor | ansible-lint-junit -o ansible-lint.xml
- ansible
- ansible-lint
- ansible-lint-junit
- yamllint