Skip to content

Latest commit

 

History

History
49 lines (38 loc) · 1.05 KB

README.md

File metadata and controls

49 lines (38 loc) · 1.05 KB

Ansible Docker

Docker Hub GitHub License

"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

Gitlab

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

🛠️ Tools included

  • ansible
  • ansible-lint
  • ansible-lint-junit
  • yamllint