AlmaLinux Docker images to be used for testing ansible playbooks and roles.
- Maintained by: hybridadmin
- Where to get help: The Docker Community Forums, Docker Community on Slack or Stack Overflow
- Where to file issues: (issue tracker) include the
docker
tag - Supported architectures: (more info)
amd64
- Install docker
- Clone the repo
git clone https://github.com/hybridadmin/docker-ansible-almalinux.git
cd
into the directory- Run
docker build -t ansible-almalinux .
Pull the image using the following command:
docker pull hybridadmin/ansible-almalinux:latest
Run a container using the image with the following command:
docker run -d --privileged -v /sys/fs/cgroup:/sys/fs/cgroup:ro hybridadmin/ansible-almalinux: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