Open jakestec opened 2 weeks ago
It would help more if instead of putting variables names "{{ ee_name }}"
you put real values, hard to guess what you pass to the task.
If you pass dest
as my.registry.domain.name
only, it won't work, you need to set a name as well. The issue is that it worked before while it shouldn't have. The Podman itself fails if you pass the registry only in command line. We stick to Podman behavior now.
It's kind of side-effect of fixing other issues with transports and adding another features for pushing, we don't have a way to understand either it's a different image, registry, archive or anything else in dest
, neither Podman does. That's why it's required now to put exactly what you need in dest
(exactly as in Podman command line).
Hello,
I've been using the latest collection version (v1.15.4) with an existing playbook to build container images. When I went to push a new image today I got the following error related to the line of code below:
Destination must be a full URL or path to a directory.
https://github.com/containers/ansible-podman-collections/blob/552af3ef7ff62706ec4bd88e8f962e069c66eddc/plugins/modules/podman_image.py#L795
My task:
Debugging I can see its not forming the push arguments correctly:
We should see:
The above task is working in v1.12.1. I was able to fix the issue by modifying the destination in the task to include the image name and tag like so:
I am not sure if this is intended, or an unplanned side effect of the changes implemented by https://github.com/containers/ansible-podman-collections/commit/4985d484155b2a0d6f90f21da99e6f152aad3d02 when doing some further checking on the transport type.