NOTE: This image is now DEPRECATED: Use:
This Dockerfile builds a Debian 10 based container, capable to use systemd
, with Ansible and Ansible
testing tools pre-installed.
Each branch of this repository represents a Debian version, with the master
branch representing the
latest version. Pull the branch (version) you are interested in.
Branch | Distribution version | Image tag |
---|---|---|
master | buster (10) | latest,10 |
testing | bullseye | testing |
unstable | sid | unstable |
stretch | stretch (9) | stretch [deprecated] |
- Install Docker or Podman.
- Clone the branch you're interested in. For example, for Debian 10 (buster):
git clone https://github.com/chzerv/docker-debian-ansible.git
. cd
into the directory and rundocker build -t debian10-ansible .
-
Pull this image from Docker hub:
docker pull chzerv/docker-debian-ansible:latest
(or use the image you built locally). -
Run a container:
docker run -d --privileged --volume=/sys/fs/cgroup:/sys/fs/cgroup:ro docker-debian-ansible:latest
-
Run Ansible inside that container:
docker exec -it $container_id ansible --version
This image is used for testing Ansible roles and playbooks locally and/or in CI, hence, security is not a concern. It is not intended or recommended to use this image in production environments.