# Invoke Dynatrace Synthetics from Ansible Playbook

**URL:** <https://community.dynatrace.com/t/invoke-dynatrace-synthetics-from-ansible-playbook/44965>\
**Category:** Automations\
**Tags:** integrations, ansible, synthetic-monitoring\
**Created:** [April 2, 2024, 4:59pm UTC](https://community.dynatrace.com/t/invoke-dynatrace-synthetics-from-ansible-playbook/44965 "2024-04-02T16:59:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![saldrich](https://avatars.discourse-cdn.com/v4/letter/s/58956e/32.png) [@saldrich](https://community.dynatrace.com/u/saldrich)\
**Post date:** [April 2, 2024, 4:59pm UTC](https://community.dynatrace.com/t/invoke-dynatrace-synthetics-from-ansible-playbook/44965/1 "2024-04-02T16:59:49Z")

</div>

Hi,

We have an automated patching solution through ServiceNow workflows utilizing Ansible.

Both before and after patching we would like to be able to include in the automation where a playbook pulls metrics from Dynatrace or invokes a Synthetic monitor & gets the results for a particular application so we can verify the health of the environment.

Is this Ansible to Dynatrace integration available? How could this be done? Thanks.

---

<div class="post-metadata">

**Author:** ![AntonioSousa](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antoniosousa/32/50_2.png) [@AntonioSousa](https://community.dynatrace.com/u/AntonioSousa)\
**Post date:** [April 2, 2024, 7:22pm UTC](https://community.dynatrace.com/t/invoke-dynatrace-synthetics-from-ansible-playbook/44965/2 "2024-04-02T19:22:19Z")

</div>

[@saldrich](https://community.dynatrace.com/user/61436)

You can get inspiration from the following links, in both documentation and posts here in the Community:

- [On-demand synthetic monitor executions for CI/CD in Classic — Dynatrace Docs](https://docs.dynatrace.com/docs/platform-modules/digital-experience/synthetic-monitoring/general-information/on-demand-executions)
- [https://community.dynatrace.com/t5/Synthetic-Monitoring/On-demand-Synthetic-execution-via-Powershell-script/m-p/239204](https://community.dynatrace.com/post/239204)
