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:
- hosts: all
- role: 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.
Solved! Go to Solution.
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
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.