# Dynatrace-Ansible integration token

**URL:** <https://community.dynatrace.com/t/dynatrace-ansible-integration-token/50142>\
**Category:** Automations\
**Tags:** integrations, ansible, automations\
**Created:** [February 6, 2025, 3:27pm UTC](https://community.dynatrace.com/t/dynatrace-ansible-integration-token/50142 "2025-02-06T15:27:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![erh\_inetum](https://avatars.discourse-cdn.com/v4/letter/e/48db29/32.png) [@erh\_inetum](https://community.dynatrace.com/u/erh_inetum)\
**Post date:** [February 6, 2025, 3:27pm UTC](https://community.dynatrace.com/t/dynatrace-ansible-integration-token/50142/1 "2025-02-06T15:27:53Z")

</div>

Hi,

Does someone know if it’s possible doing Dynatrace and Ansible integration using Ansible bearer token instead of user and password?

Could OAuth credentials 2.0 in Custom Integration be used to configure Ansible Bearer token?

Thanks in advance.

Regards,

Elena.

---

<div class="post-metadata">

**Author:** ![ManuelWarum](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/manuelwarum/32/36329_2.png) [@ManuelWarum](https://community.dynatrace.com/u/ManuelWarum)\
**Post date:** [February 10, 2025, 2:49pm UTC](https://community.dynatrace.com/t/dynatrace-ansible-integration-token/50142/2 "2025-02-10T14:49:15Z")

</div>

Hi Elena, thanks for reaching out!

I assume this is about AWX. For this, we currently only support basic authentication. There are some tentative plans to also support OAuth, but we don’t have it planned yet. Please let us know if this is important to you. We’ll see if this is something we can address in the future.

---

<div class="post-metadata">

**Author:** ![erh\_inetum](https://avatars.discourse-cdn.com/v4/letter/e/48db29/32.png) [@erh\_inetum](https://community.dynatrace.com/u/erh_inetum)\
**Post date:** [February 11, 2025, 8:53am UTC](https://community.dynatrace.com/t/dynatrace-ansible-integration-token/50142/3 "2025-02-11T08:53:18Z")

</div>

Hi Manuel,

Yes, we’re using AWX.

We think it’s important to use Ansible bearer token for API use, as in this case.&nbsp;The token is more restrictive in permissions and makes it easier to use the API (with the token you simply do an HTTP POST to the method that launches the task, with username/password you first have to log in to get the CSRF token and the session to be able to launch the task). Also, a user can have multiple tokens, so it is easier to manage permissions, more granular, and you can segment permissions management. If a token is compromised, it’s deleted and a new one is created, affecting only one AWX-Other\_system integration. If a user password is compromised, the password must be changed in AWX and on all systems using it.

Thanks,

Elena.

---

<div class="post-metadata">

**Author:** ![erh\_inetum](https://avatars.discourse-cdn.com/v4/letter/e/48db29/32.png) [@erh\_inetum](https://community.dynatrace.com/u/erh_inetum)\
**Post date:** [February 11, 2025, 9:14am UTC](https://community.dynatrace.com/t/dynatrace-ansible-integration-token/50142/4 "2025-02-11T09:14:38Z")

</div>

Hi again [@ManuelWarum](https://community.dynatrace.com/user/57434)&nbsp;,

We’ve created&nbsp;the following&nbsp;[product idea](https://community.dynatrace.com/post/269713#M49982).

Regards,

Elena.
