# Install Ansible Module Dynatrace - OneAgent

**URL:** <https://community.dynatrace.com/t/install-ansible-module-dynatrace-oneagent/19010>\
**Category:** Automations\
**Tags:** oneagent, automation\
**Created:** [April 12, 2020, 11:26pm UTC](https://community.dynatrace.com/t/install-ansible-module-dynatrace-oneagent/19010 "2020-04-12T23:26:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rguerrero](https://avatars.discourse-cdn.com/v4/letter/r/ce73a5/32.png) [@rguerrero](https://community.dynatrace.com/u/rguerrero)\
**Post date:** [April 12, 2020, 11:26pm UTC](https://community.dynatrace.com/t/install-ansible-module-dynatrace-oneagent/19010/1 "2020-04-12T23:26:14Z")

</div>

Hello everyone;

I have ansible tower and I want to install the ansible OneAgent module.

I run this command: **ansible-galaxy install dynatrace.oneagent,1.0.7** and I see:

 ![instalacion.png](https://global.discourse-cdn.com/dynatrace/original/2X/8/8a32db35485c10d9e3c4d43016fa012dba9cd73c.png)

My PlayBook:

```auto
---
- hosts: all
  become: true
  roles:
    - role: Dynatrace.OneAgent
  vars:
    dynatrace_environment_url: {your-domain}/e/{your-environment-id}
    dynatrace_paas_token: {your-paas-token}

```

Reference: [Ansible Galaxy](https://galaxy.ansible.com/Dynatrace/OneAgent)

I want to automate the installation of Dynatrace OneAgent on my servers with Ansible Tower but I am have the following problem:

 ![24583-tower-evidencia.png](https://global.discourse-cdn.com/dynatrace/original/2X/d/deb8602dcc424ff0aa04d923937d9f3514b908c9.png)

How can i solve this problem?

Thank for you help.

Regards;

RobertoArnold

 ![24583-tower-evidencia.png](https://global.discourse-cdn.com/dynatrace/original/2X/d/deb8602dcc424ff0aa04d923937d9f3514b908c9.png)

---

<div class="post-metadata">

**Author:** ![Radu](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radu/32/23351_2.png) [@Radu](https://community.dynatrace.com/u/Radu)\
**Post date:** [April 14, 2020, 7:03am UTC](https://community.dynatrace.com/t/install-ansible-module-dynatrace-oneagent/19010/2 "2020-04-14T07:03:07Z")

</div>

Hi Roberto,

I think this may be a simple camel-case issue. Try correcting the role to “dynatrace.oneagent” (all lower case).

Otherwise, it may be that Ansible is looking for the role in the wrong directories. In this case use the ansible.cfg file to specify the roles directory where the oneagent role was installed (/root/.ansible/roles from your screenshots).

Or you can install the role again, this time specifying your project directory, such as:

```auto
ansible-galaxy install dynatrace.oneagent,1.0.7 --roles-path /path/to/project

```

Best regards,

Radu

---

<div class="post-metadata">

**Author:** ![rguerrero](https://avatars.discourse-cdn.com/v4/letter/r/ce73a5/32.png) [@rguerrero](https://community.dynatrace.com/u/rguerrero)\
**Post date:** [April 19, 2020, 5:48pm UTC](https://community.dynatrace.com/t/install-ansible-module-dynatrace-oneagent/19010/3 "2020-04-19T17:48:41Z")

</div>

Hello [@Radu S.](https://answers.dynatrace.com/users/5445/view.html).

Thank you very much for your help ; exactly it is a simple camel-case issue 🙂

Download the module and copy it into my project. I have presented this problem because I am a little new to Ansible, I am going to reinforce the concept of roles :).

I have already managed to install OneAgent on the servers I needed, I will continue with the automation tasks.

Best regards;

RobertoGuerrero
