You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
When the state is set to be absent, and quadlet options are set, the expected behavior would be to both remove the quadlet file and podman resource. The current behavior is so just remove the podman resource (image, container, volume, ...).
As a user this would be desirable for me to manage podman deployments purely through this module rather than relying on using the file module to remove the quadlets this module generates. Currently I am achieving this behavior through the use of a role, but think this would be better implemented by the module itself.
I am reasonably new to using Ansible so let me know if there are any issues with this approach or if it would not indeed be expected behavior in the ecosystem.
The text was updated successfully, but these errors were encountered:
Yeah, it sounds reasonable. We can check quadlet_file, quadlet_dir when state is absent and delete them as well if they are specified, or look for a default file and implicitly delete it. To be consistent though we need to delete systemd files as well then, and it's not the case right now.
Let's hear what others say.
We can delete ${quadlet_dir}/${quadlet_file}. In addition, I would say we should run systemctl --user daemon-reload to delete unit files generated by quadlet, which are located in /run/user/$UID/systemd/generator/ for rootless.
* All services are provisioned as quadlets now
* Removed pruning unknown services for now
* Added support to running the role rootless
* Reworked envvar config for minecraft
* Removed explicit custom services, you can specify them as name:
'path/to/service_tasks.yml'
* Added ARR stack 🏴☠️
* Reworked all storage into podman volumes instead of mounted dirs,
this will allow greater flexibility when deploying volumes, provided
your Podman instance is configured for it
* Removed portainer
* Added a workaround for containers/ansible-podman-collections#739
/kind feature
Description
When the state is set to be absent, and quadlet options are set, the expected behavior would be to both remove the quadlet file and podman resource. The current behavior is so just remove the podman resource (image, container, volume, ...).
As a user this would be desirable for me to manage podman deployments purely through this module rather than relying on using the file module to remove the quadlets this module generates. Currently I am achieving this behavior through the use of a role, but think this would be better implemented by the module itself.
I am reasonably new to using Ansible so let me know if there are any issues with this approach or if it would not indeed be expected behavior in the ecosystem.
The text was updated successfully, but these errors were encountered: