/docker-ubuntu1904-ansible

A Ubuntu 19.04 (Disco) Docker container image for Ansible playbook and role testing

Primary LanguagePythonApache License 2.0Apache-2.0

Docker Container Image: Ubuntu 19.04 (Disco) with Ansible

Build Status Docker Build Status License

A Ubuntu 19.04 (Disco) Docker container image for Ansible playbook and role testing.

This image uses docker systemctl replacement script to execute systemctl commands without systemd.

Usage

  1. Install Docker.

  2. Pull this image from Docker Hub.

    docker pull erjac77/docker-ubuntu1904-ansible:latest

  3. Run a container using the image.

    docker run -d --name [container_name] --privileged erjac77/docker-ubuntu1904-ansible:latest

  4. 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

Warnings

Important: For testing purposes only. Do not use this image in production!

License

Apache 2.0

Author Information

Eric Jacob (@erjac77)