I propose to use this procedure:
https://www.ansible.com/blog/testing-ansible-roles-with-docker
Please see the travis file in https://github.com/openearth-stack/postgresql/blob/master/.travis.yml as an example.
Install Ubuntu 16.06 SERVER
sudo apt-get update
sudo apt-get install docker.io
http://stackoverflow.com/questions/21053657/how-to-run-travis-ci-locally
lid worden van de dockergroep
vigr
Add username to docker:
docker:x:117:USERNAME
create shadow group
vigr -s
select an image from Quay.io. If you're not using a language-specific image pick travis-ruby. Open a terminal and start an interactive Docker session using the image URL:
docker run -it quay.io/travisci/travis-ruby /bin/bash
Switch to the travis user:
sudo su travis
Git clone repositories (e.g.):
cd ~/builds/
git clone https://github.com/openearth-stack/postgresql.git
git clone https://github.com/openearth-stack/general.git