This is my personal Ansible Container Podman project, derified from RH294 Red Hat Academy.
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
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
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.
Collection can be installed using ansible galaxy, the requirement file is provided.
cd /root
ansible-galaxy collection install -r collections/requirements.yml -p collections/
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