I want to use Ansible to add Icinga2 passive monitoring for my hosts with agent monitoring. I have a single master node and am not using satellites yet.
I’ve had some success in setting up the client side thanks to this answer.
What commands do I need to run on the master node to add in the remote node?
I’m using Ansible so I specifically want to avoid the wizard.
I’d prefer use separate files for each host that I’m managing because my Ansible skills aren’t good enough to be confident around inserting and deleting blocks of config within that file.
Are there any examples of Ansible setups like this?
i just started with Ansible and I would like to install the Linux Icinga Agents with ansible too. As I’am still learning ansible i would like to see your approach. It is possible to share your ansible playbook fpr Agent configiuration?
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: