Skip to content

krom/ansible-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Docker Image for Ansible

This image based at Ubuntu and contains:

  • ansible
  • ansible-lint

Usage

$ docker pull kromz/ansible

Example of .gitlab-ci.yml

image: kromz/ansible:latest

stages:
  - test
  - deploy

test:
  stage: test
  script:
    - ansible-lint playbook.yml
    - ansible-playbook --check playbook.yml

deploy:
  stage: deploy
  only:
    - master
  environment:
    name: Dev
  script:
    - ansible-playbook playbook.yml