-
-
Notifications
You must be signed in to change notification settings - Fork 137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pushing to a specified dest is not respected if name "is a URL" #218
Comments
The check which causes this is: ansible-podman-collections/plugins/modules/podman_image.py Lines 669 to 671 in 7bacd62
|
@maybe-sybr I was running into a similar problem, and I cannot guarantee this will fix your problem, but here is what I did to address my problem yesterday: goal of playbook:
ansible environment:
my playbook:
This results in a call to our enterprise repo, as printed to
The above was only achievable once I realized that (a) the value in Regardless, I believe the module lacks a few things:
|
Fix containers#218 containers#205 containers#264 Signed-off-by: Sagi Shnaidman <[email protected]>
Fix containers#218 containers#205 containers#264 Signed-off-by: Sagi Shnaidman <[email protected]>
Fix #218 #205 #264 Signed-off-by: Sagi Shnaidman <[email protected]>
/kind bug
Description
push_args['dest']
is ignored if the name of an image to be pushed is a URL (well...contains a forward slash). This is kind of annoying and is blocking me from using the podman module to push images to my registry mirror.Steps to reproduce the issue:
podman run --rm -ti -p 5000:5000 registry:2
Describe the results you received:
The podman module attempted to push the image back to docker.io rather than to my local mirror
Describe the results you expected:
It should have pushed to my mirror
Additional information you deem important (e.g. issue happens only occasionally):
Version of the
containers.podman
collection:Either git commit if installed from git:
git show --summary
Or version from
ansible-galaxy
if installed from galaxy:ansible-galaxy collection list | grep containers.podman
Output of
ansible --version
:Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Playbok you run with ansible (e.g. content of
playbook.yaml
):Command line and output of ansible run with high verbosity
Please NOTE: if you submit a bug about idempotency, run the playbook with
--diff
option, like:ansible-playbook -i inventory --diff -vv playbook.yml
Additional environment details (AWS, VirtualBox, physical, etc.):
The text was updated successfully, but these errors were encountered: