# Enable Auto update and install OneAgent via Ansible automation

**URL:** <https://community.dynatrace.com/t/enable-auto-update-and-install-oneagent-via-ansible-automation/47303>\
**Category:** Open Q&A\
**Tags:** installation, oneagent, dynatrace-api\
**Created:** [August 25, 2024, 8:58pm UTC](https://community.dynatrace.com/t/enable-auto-update-and-install-oneagent-via-ansible-automation/47303 "2024-08-25T20:58:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![huzoor](https://avatars.discourse-cdn.com/v4/letter/h/67e7ee/32.png) [@huzoor](https://community.dynatrace.com/u/huzoor)\
**Post date:** [August 25, 2024, 8:58pm UTC](https://community.dynatrace.com/t/enable-auto-update-and-install-oneagent-via-ansible-automation/47303/1 "2024-08-25T20:58:23Z")

</div>

Hello,

We are working on automating oneagent updates for around 5k hosts using Ansible, Could anyone please let me know if there is any API call that can get fetch me on how to GET/PUT if auto update is enabled and if not then to enable it and also configure settings like to do updates during maintenance window with a n-2 version ( I am a newbie on this API call stuff for dynatrace) so please help me out here with any references.

---

<div class="post-metadata">

**Author:** ![p\_devulapalli](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/p_devulapalli/32/41590_2.png) [@p\_devulapalli](https://community.dynatrace.com/u/p_devulapalli)\
**Post date:** [August 26, 2024, 4:46am UTC](https://community.dynatrace.com/t/enable-auto-update-and-install-oneagent-via-ansible-automation/47303/2 "2024-08-26T04:46:12Z")

</div>

Configuration API is where you need to explore for OneAgent auto update, please check the below

> **[Configuration API](https://docs.dynatrace.com/docs/dynatrace-api/configuration-api)**
>
> Find out what you need to use the configuration section of the Dynatrace API.

> **[OneAgent environment-wide configuration API](https://docs.dynatrace.com/docs/dynatrace-api/configuration-api/oneagent-configuration/oneagent-environment-wide)**
>
> Manage environment-wide configuration of OneAgent via the Dynatrace API.
