How do you extract registered variables returned from an ansible playbook?

372 Views Asked by At

I have a playbook task like this:

tasks:

  - shell: /usr/bin/foo
    register: foo_result

I'm running this playbook using the python API, and I would like to do some post processing on the foo_result variable. How do I access foo_result using the API?

0

There are 0 best solutions below