ansible / ansible-runner

A tool and python library that helps when interfacing with Ansible directly or as part of another system whether that be through a container image interface, as a standalone tool, or as a Python module that can be imported. The goal is to provide a stable and consistent interface abstraction to Ansible.
Other
968 stars 356 forks source link

`ansible-runner run` does nothing on my Macbook Pro (Apple M3 Pro) #1354

Closed ryeleo closed 7 months ago

ryeleo commented 7 months ago

When I try to use ansible-runner on my new Macbook Pro, it blocks, but appears to do nothing:

❯ ansible-runner -vvvv run -vvvvv . --container-image docker.io/ntsjenkins/junos-ansible-ansible-execution-env:latest --process-isolation --process-isolation-executable docker --limit cc_ah_ldr -p site.yml
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested

When I look at Docker Desktop to see what's going on, it shows that the container seems to be sitting idle:

image

Thanks for this project! It works great in my CICD environment (redhat)!

Shrews commented 7 months ago

WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8)

The answer is right there in your description. That's a warning from docker itself, not runner. Your container image platform (amd64) must match the host (Mac) platform (arm64). That image doesn't appear to have been built with arm64 support.

https://docs.docker.com/build/building/multi-platform/