Hi again everyone,
After reading more and building a custom execution environment myself (which worked great, thanks for ansible-builder btw!), I am now certain ansible-runner is what I want to use to be able to run jobs on my machine with the same execution environment and parameters than within AWX.
The thing is I cannot manage to find the actual ansible-runner arguments which are used when a job is run. The closest I could get was using the AWX CLI client and finding a related commandline for a job in its job_args variable:
"job_args": "[\"ssh-agent\", \"sh\", \"-c\", \"trap 'rm -f /runner/artifacts/112/ssh_key_data' EXIT && ssh-add /runner/artifacts/112/ssh_key_data && rm -f /runner/artifacts/112/ssh_key_data && ansible-playbook -u root --become-method
sudo -i /runner/inventory/hosts -e @/runner/env/extravars ansible/vrubiolo-playbook.yaml\"]",
Would you have any hint? Are you guys using such an interface to debug/run jobs on your workstation?
Thanks for your input here,
Vincent