Using Ansible to add Icinga2 agent to master node

Thanks for your examples. I will take a look into it.

As i havnt’ found a way, I just added the ability to add zones in this Ansible Role:

https://github.com/Icinga/ansible-icinga2

as i havent’ found a generic way to do so. I’am using this to deploy the Agents.
At the momnet this will overwrite the zonesfiles, but will create a backup before.
On the Master node I’am adding the zones via the ansible director module:

2 Likes