This is a ansible container with podman for RH294 playground (that I myself need to learn/update). This is possible by podman --privileged flags, see https://www.redhat.com/sysadmin/podman-inside-container

Benyamin Limanto f3f2dc3e4c feat(play): create vm, collections, and templates 4 months ago
data f3f2dc3e4c feat(play): create vm, collections, and templates 4 months ago
.gitignore f3f2dc3e4c feat(play): create vm, collections, and templates 4 months ago
Containerfile 6f77d05b48 fix(container): adding all ansible cli tools pip 4 months ago
README.md bb1801f026 fix(play): lvm play need community collections 4 months ago
docker-compose.yml 8fc9438be2 feat(app): first commit, ansible container script 10 months ago
shell.sh 8fc9438be2 feat(app): first commit, ansible container script 10 months ago
start.sh 735411ad75 fix: container run and remove shell script 9 months ago
stop.sh 735411ad75 fix: container run and remove shell script 9 months ago

README.md

Ansible Podman Container With Config

This is my personal Ansible Container Podman project, derified from RH294 Red Hat Academy.

How To Start

Build the image

podman build -t ansible 

then run the image using

./start.sh

after that you can run

./shell.sh

and either you run ansible-navigator or podman pull quay.io/ansible/creator-ee:v0.9.1

How to Stop or Clear

To stop you can use

./stop.sh

to stop and fully remove the container (you will lost the podman in podman images)

./stop.sh rm

Set The Variable

The IP of each server on this project isn't the real server, you need to add ansible_host on each host_vars folder with the FQDN, for more see Host Vars and Group Vars, or take RH294 from Red Hat to learn more about it.

Install the collections

Collection can be installed using ansible galaxy, the requirement file is provided.

cd /root
ansible-galaxy collection install -r collections/requirements.yml -p collections/

Footnote

This podman ansible is possible by the implementation by Dan Walsh on Podman in Podman, more see Podman in Podman using --privileged written by Dan Walsh