2

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?

udondan
  • 57,263
  • 20
  • 190
  • 175
pixelrebel
  • 61
  • 4
  • 1
    I have no experience with the API yet but I know the API has changed between Ansible 1 and 2. It might be worth adding your Ansible version to the question so you get an answer that will work for you. – udondan Feb 18 '16 at 03:30
  • Does [how to make a callback](https://stackoverflow.com/a/39991404/6771046) answer your question? – U880D Oct 21 '21 at 17:04

0 Answers0