Manageiq service bundle with multiple ansible jobs

I am building out a bundle to run a number of Ansible Tower jobs. What I am wanting to do is extract artifacts/facts from a completed job and pass it through to the next job. I have figured out how to modify the extra_vars in the second playbook using code in the statemachine, the bit I am having trouble with is pull the artifacts out of the completed job.

I found a method that allows me to view the stdout of the job, job.raw_stdout, I can’t seem to find anything similar to pull the artifacts/facts. Has anyone else attempted and succeeded in doing this?

Ben

Bueller, Bueller…

I have decided to go with writing a methods that makes an API call to Ansible Tower using the Job ID stored in the job object to retrieve the artifacts.