Skip to content

josuablejeru/ansible-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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