Test Ansible roles and playbooks using Docker

I’ve created a role, provision_docker, to help test Ansible roles and playbooks. It’s simple and leverages Docker (not vms).

Highlights:

  • Best practice directory structure
  • Test roles/playbooks using docker (spin up multiple hosts [1])
  • Plays nicely with TravisCI, (see example repos below [1] [2] [3] [4])
  • Curated Dockerfile’s centos 6/7 ubuntu 12.04/14.04 images w/ init system and ssh enabled
    Example Uses:
  1. HA mongo chrismeyersfsu/role-install_mongod

  2. Ansible hacking/development env bringup chrismeyersfsu/ansible_test_deps

  3. iptables chrismeyersfsu/role-iptables

  4. devstack (openstack on a single machine) chrismeyersfsu/role-devstack

Feedback welcome!