This repository provides Ansible playbooks for seamless management of the Doom Game container using Podman.
sudo yum install -y ansible
brew install ansible
-
Create the directory in your user space:
mkdir -p ~/ansible/ cd ~/ansible
-
Create the
ansible.cfg
file:vim ansible.cfg
Add the following configuration and save:
[defaults] inventory=./inventory
-
Create the
inventory
file:vim inventory
Add the following, replacing
your-local-ip
with your actual local IP:[localhost] your-local-ip ansible_connection=local
Example:
[localhost] 192.168.101.214 ansible_connection=local
-
Run
ansible --version
to verify if the configuration file has been picked up.
sudo yum install -y podman
brew install podman
To start the Podman machine on Silicon Macs (M1), use the following command:
podman machine start
-
Run the Ansible playbook to start the Doom Game container:
ansible-playbook doom_pod.yml.yml
-
After successful execution, access the Doom Game through the provided URL.
-
Run the Ansible playbook to stop and remove the Doom Game container:
ansible-playbook doom_pod-rm.yml
- Customize the playbooks according to your specific requirements.
- Ensure proper network configurations and permissions for successful execution.
- A big thank you to CallumHoughton18 for their contributions.