Sign inSign up

hybridadmin/ansible-centosstream

By hybridadmin

•Updated 12 months ago

Image
0

1.2K

hybridadmin/ansible-centosstream repository overview

⁠CentOS Stream Docker Images with ansible and systemd

Build Docker Pulls

CentOS Stream Docker images to be used for testing ansible playbooks and roles.

⁠Quick reference

⁠How to Build the image

  1. Install docker
  2. Clone the repo git clone https://github.com/hybridadmin/docker-ansible-centosstream.git
  3. cd into the directory
  4. Run docker build -t ansible-centosstream .

⁠How to use this image

Pull the image using the following command:

docker pull hybridadmin/ansible-centosstream: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-centosstream: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

Tag summary

Content type

Image

Digest

sha256:d1acc67a9…

Size

335.2 MB

Last updated

12 months ago

docker pull hybridadmin/ansible-centosstream