# Return output when workflow calls Ansible playbook

**URL:** <https://community.dynatrace.com/t/return-output-when-workflow-calls-ansible-playbook/44155>\
**Category:** Automations\
**Tags:** ansible, workflows\
**Created:** [February 15, 2024, 6:59pm UTC](https://community.dynatrace.com/t/return-output-when-workflow-calls-ansible-playbook/44155 "2024-02-15T18:59:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![derija](https://avatars.discourse-cdn.com/v4/letter/d/a87d85/32.png) [@derija](https://community.dynatrace.com/u/derija)\
**Post date:** [February 15, 2024, 6:59pm UTC](https://community.dynatrace.com/t/return-output-when-workflow-calls-ansible-playbook/44155/1 "2024-02-15T18:59:21Z")

</div>

We have built a Workflow that makes a call to a specific play (job template number) the ansible play launches and we can access the parameters passed to it by DT workflow. Play runs and performs local windows command. We output the resultset in ansible and we can see in ansible tower job details.

How do we pass this data back to DT? I review the “results” in workflow and do not see in any of the fields with the output.

TIA

---

<div class="post-metadata">

**Author:** ![ChadTurner](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/chadturner/32/161_2.png) [@ChadTurner](https://community.dynatrace.com/u/ChadTurner)\
**Post date:** [December 27, 2024, 7:39pm UTC](https://community.dynatrace.com/t/return-output-when-workflow-calls-ansible-playbook/44155/2 "2024-12-27T19:39:53Z")

</div>

I would recommend passing it back as a metric event to the entity itself that way it is recorded. Very similar to a CICD Pipeline so you can find associated changes.
