Go to file
2016-08-14 10:22:01 +02:00
alpine-3 try context var 2016-08-13 13:20:23 +02:00
centos-7 added centos-7 variant 2016-08-14 10:22:01 +02:00
debian-8 moved dockerfiles to folders for automated builds with docker hub 2016-08-13 13:32:33 +02:00
fedora-24 moved dockerfiles to folders for automated builds with docker hub 2016-08-13 13:32:33 +02:00
ubuntu-16.04 moved dockerfiles to folders for automated builds with docker hub 2016-08-13 13:32:33 +02:00
README.md explain how to use the image for drone matrix builds 2016-08-13 14:45:55 +02:00

ansible

Docker images for running and testing ansible playbooks against various operating systems. I don't like obfuscated docker images with external scripts and hundreds of bells and whistles.

Available with four image tags:

  • ubuntu-16.04
  • debian-8
  • fedora-24
  • alpine-3

run ansible as controller

docker run -it --rm \
    -w /site \
    -v /path/to/site/:/site \
    -v /path/to/ansible-user-ssh/:/root/.ssh:ro \
    --tmpfs /root/.ansible \
    chmuul/ansible:alpine-3 \
    ansible-playbook site.yml

Note: /root/.ansible must not be an overlayfs, otherwise ssh accelerate won't work.

use ansible in drone builds

build:
  image: chmuul/ansible:$$OS
  pull: true
  commands:
    - ansible-playbook -i tests/inventory tests/main.yml --syntax-check
    - ansible-playbook -i tests/inventory tests/main.yml

matrix:
  OS:
    - ubuntu-16.04
    - fedora-24
    - debian-8

references