No description
  • Shell 50.7%
  • Jinja 49.3%
Find a file
2026-04-05 18:49:02 +00:00
defaults update k8s deployment support 2026-04-05 17:58:04 +00:00
files update docs, update shared tasks, cleanup, etc 2023-10-08 20:35:10 +00:00
handlers update defualt values, update system tasks 2025-10-06 22:07:53 +00:00
meta upate meta data 2026-04-05 18:49:02 +00:00
tasks update k8s deployment support 2026-04-05 17:58:04 +00:00
templates update defualt values, update system tasks 2025-10-06 22:07:53 +00:00
vars update k8s deployment support 2026-04-05 17:58:04 +00:00
.gitignore update defualt values, update system tasks 2025-10-06 22:07:53 +00:00
README.md update docs, update shared tasks, cleanup, etc 2023-10-08 20:35:10 +00:00

ansible-roles-containers

Base role shared but all the podman based container deployments

Deployment

Pods and Containers have have their respecive service files prefixed accordingly, pod- and container-

Sometimes you need to manually stop the running containers to get a clean run when re-deploying Services must be stopped as the respecitve user or another means to aquire the correct user scope for systemd

All containers in a pod are controlled through the pod service

systemctl --user stop pod-<service-name>.service

Stand alone containers can be controlled directly through the container service

systemctl --user stop container-<service-name>.service

Deployments can comprize combinations of roles

ansible-playbook -i hosts site.yml --tags=firewalld,traefik,portainer,uptime --limit=somehost

Removal of a deployment

Podman based deployments will leave behind their service files in the respective users home directory under ~/.config/systemd/user

ansible-playbook -i hosts site.yml --tags=uptime --extra-vars "container_state=absent" --limit=somehost

Reversing firewalld rules without statically defining a removal dict

ansible-playbook -i hosts site.yml --tags=firewalld,traefik --extra-vars "firewall_action=remove" --limit=somehost

Combined removal

ansible-playbook -i hosts site.yml --tags=firewalld,traefik,portainer,uptime --extra-vars "container_state=absent firewall_action=remove" --limit=somehost