cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Install Ansible Module Dynatrace - OneAgent

rguerrero
Inactive

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:

My PlayBook:

--- 
- 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: 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:

How can i solve this problem?

Thank for you help.

Regards;

RobertoArnold


2 REPLIES 2

Radu
Dynatrace Champion
Dynatrace Champion

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:

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

Best regards,

Radu

Hello @Radu S..

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

Featured Posts