Because wanting to change host groups for several hosts at once. Can we use Ansible to help change it?
If possible, please share the playbook and how to.
Because wanting to change host groups for several hosts at once. Can we use Ansible to help change it?
If possible, please share the playbook and how to.
Hi,
As much as possible you can use Ansible for this. I don’t have the playbooks ready. However, use OneAgent CLI (OneAgent configuration via command-line interface — Dynatrace Docs) to create and manage host groups.
Remember that you can set the host group at installation or change it using the CLI. There is no other option.
Radek
Thanks, I didn’t notice that Dynatrace added this feature.
This will be useful, but if you need to add 100 agents to a host group, it will be cumbersome.
CLI is the best at this point.
Radek
Not quite agree with you @radek_jasinski, you can filter the oneagent deployment (let’s say by tag) and then switch on the check box for all the hosts and you are all set.
If you have a tool to run the CLI on 100 hosts go for it!
Yos
I agree with you:)
Hi @radek_jasinski and @Yosi_Neuman
I understand it’s much easier to edit via the web, just tick a checkbox. But the dynatrace version of the customer is very old. Therefore, only about 70 out of 200 devices can use that feature.
If using the CLI, it should take quite a long time. If you have a more convenient way, please suggest.
Chayaphot
I think we have described with Yosi all the possibilities of host group configuration.
Radek