ansible testing using docker

Hi,

How do you guys use docker with ansible to test out your playbooks? Does it take a long time to spin up the image and install things?

I’m curious if the workflow is any different than just using vagrant/virtualbox.

I am currently doing it the iterative way using a real cloud server but I am sure there is a better way :slight_smile:

Vagrant works fine, but is a bit slow. Docker is fast, but might not match what you use in production.

Some useful resources:

- https://github.com/Oefenweb/ansible-fail2ban/blob/master/Vagrantfile
- https://github.com/Oefenweb/ansible-fail2ban/blob/master/.travis.yml
- https://github.com/geerlingguy/ansible-role-git/blob/master/.travis.yml
- https://github.com/metacloud/molecule/blob/master/README.rst