We are using Ansible to install our servers. I've set up an Ansible role to add the host to Zabbix if it doesn't exist. In addition we have other Zabbix roles, like for instance setup monitoring on Apache and PostgreSQL. The problem is that when I add a template through a playbook, all existing templates on the server in Zabbix is gone. So when I run the zabbix-agent playbook, our standard templates are added. When the playbook for monitoring Apache is running and updating the host to add a new template, the previous ones are removed.
Is it possible to just add templates through playbooks and not remove the existing ones? The same goes for host groups as well. Has anyone managed to do this?
Regards
Is it possible to just add templates through playbooks and not remove the existing ones? The same goes for host groups as well. Has anyone managed to do this?
Regards
Comment