Hacker News new | ask | show | jobs
by zephyros 1220 days ago
I'm using the podman ansible module[1] to manage the podman container atm, it's ... Okish. I wrote a spaghetti mess with ansible conditionals and loops to manage multitude of systemd files made from podman-generate-systemd. If I had some time maybe I'll try this out, a more declarative approach would certainly be nicer.

[1]: https://github.com/containers/ansible-podman-collections

1 comments

I do something similar but I don't use podman-generate-systemd; instead I create the systemd service by hand using a Jinja template[1], and then start the service[2]. This has the advantage that there's no hole where the container is running but systemd configuration has not been updated yet.

Either way, it's indeed quite tempting to use quadlet instead of the nasty templates that build the podman commandline.

I also want to check if quadlet supports override files like systemd's, because that would be quite interesting as a customization mechanism that does not require forking the playbooks.

[1] https://github.com/patchew-project/patchew/blob/master/scrip...

[2] https://github.com/patchew-project/patchew/blob/master/scrip...