We have a group of VMs that are configured using ansible, including basic zabbix monitoring using the
zabbix_host module using a predefined zabbix template.
I would like to be able to generate web scenarios for each of the VMs that have web services. Ansible already has most relevant data e.g. fqdn of the web services. However, I do not see if this is possible using the current ansible zabbix collection.
Currently, the simplest possibility seems to be to compile the json to be sent to the zabbix API from a jinja2 template locally and then posting that manually using the
url module (if possible, I am not sure it is fully-featured to create zabbix api POSTs) or with curl using the
Is there a better/more systematic way to create zabbix web scenarios using ansible?