AmazonLinux Docker images to be used for testing ansible playbooks and roles.
docker tagamd64Dockerfile linksgit clone https://github.com/hybridadmin/docker-ansible-amazonlinux.gitcd into the directorydocker build -t ansible-amazonlinux .Pull the image using the following command:
docker pull hybridadmin/ansible-amazonlinux:latest
Run a container using the image with the following command:
docker run -d --privileged -v /sys/fs/cgroup:/sys/fs/cgroup:rw --cgroupns=host hybridadmin/ansible-amazonlinux:latest
Use ansible inside the container:
docker exec --tty [container_id] env TERM=xterm ansible --version
docker exec --tty [container_id] env TERM=xterm ansible-playbook /path/to/playbook.yml --syntax-check
Connect to the container:
docker exec -it [container_id] /bin/bash
Content type
Image
Digest
sha256:f8c696cc8…
Size
210.5 MB
Last updated
11 months ago
docker pull hybridadmin/ansible-amazonlinux