This image based at Ubuntu and contains:
- ansible
- ansible-lint
$ docker pull kromz/ansible
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