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?