A Ubuntu 18.04 LTS (Bionic) Docker container image for Ansible playbook and role testing.
This image uses docker systemctl replacement script to execute systemctl commands without systemd.
-
Pull this image from Docker Hub.
docker pull erjac77/docker-ubuntu1804-ansible:latest
-
Run a container using the image.
docker run -d --name [container_name] --privileged erjac77/docker-ubuntu1804-ansible:latest
-
Use Ansible inside the container.
a.
docker exec -it [container_name] ansible --version
b.
docker exec -it [container_name] ansible-playbook /path/to/ansible/playbook.yml
Important: For testing purposes only. Do not use this image in production!
Apache 2.0
Eric Jacob (@erjac77)