The various presentations I've seen about Execution Environments talk
about the benefits for testing: you can run your playbooks locally in
the same environment that AWX does. That sounded cool, so I got
ansible-builder to build my environment (eventually!) and push it to our
Docker registry.
Now - how do I get ansible-runner to actually use it? I set my
runner/env/settings to use process_isolation, and gave it my container
image, but it still seems to be running locally with bwrap. e.g. "az
account list" run from the playbook gives my locally-configured list of
accounts.
runner/env/settings:
container_image: my-awx-ee-az-cli-helm
process_isolation: true
ansible-runner run --playbook test-playbook.yaml runner -v
The only example I could find was
https://github.com/AlanCoding/awx-ee-test which also has
"process_isolation_executable: docker" but if I include that, docker
complains about command-line options that are meant for bwrap
(--die-with-parent).
How is it supposed to be done? Enabling our users to test their
awx-bound playbooks before committing would be very useful!