How Does Ansible Automation Platform Invoke The "ansible-playbook" Command When A Job Template Is Launched?
Environment
- Red Hat Ansible Automation Platform
Issue
- How Does Ansible Automation Platform Invoke The
ansible-playbookCommand When A Job Template Is Launched?
Resolution
-
Ansible Tower invokes the
ansible-playbookcommand as a built-inawxuser, and you can see the information via API, /api/v2/jobs/N/.1) Login to Tower's API as the
adminuser.https://<TOWER_URL>/api/login/2) Access the API.
https://<TOWER_URL>/api/v2/jobs/N/Where N is the job number which you want to see.
3) Then you can see the details for the job execution.
- "job_args": command line as a list
- "job_cwd": working directory
- "job_env": environment variables
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Comments