Add host to Icinga2 directory throught ansible script


For some days I’ve been looking for a solution to add a host in Icinga2, and deploy it automatically using ansible.

I’ve been able to add the host in Icinga2 using ansible, but I couldn’t find a way to deploy the changes automatically.

Is there a way to deploy changes from ansible playbook?

It’s true that I was able to apply changes with automatic jobs, but this doesn’t help me, because it will deploy all changes from all users.



I don’t understand what you mean with “deploy changes”, therefore, I give you some hints for getting more information:

Thanks for the links you provided!