you can use zabbix template module to manage templates, if you want to automate everything then you should try to not use items without templates, just add those items to templates, make as much templates you need, and then link host to needed templates.
we have much templates, and we have create in defaults/main.yml ansible group mapping to zabbix group mapping (as we have lots ansible groups, we don't want to add them to zabbix all) also there is defined dict with default templates, and when some group needs to add more templates, you just merge those dict's and that way you can manage ansible. don't know what you need more :) there is some work started to more modules, but in quick look it's abadoned for 1y https://github.com/pivno/ansible-zabbix-modules in a way you can make your modules if youre interested in extending functionality. On Tuesday, November 14, 2017 at 7:45:50 AM UTC+2, Jon Forrest wrote: > > I'm interested if there are any Ansible modules for completely > (or as closely as possible) managing Zabbix. I'm aware of the > modules that come with Ansible, but they appear to be quite limited, > and only cover managing groups, hosts, and screens. I didn't find > anything that, for example, can configure items or alerts. > > What I'm looking for is ideally a way to do all configuration with > Ansible rather than by the Zabbix GUI. In other words, the complete > Zabbix configuration would be managed by Ansible so that it would > be (relatively) trivial to backup and restore a Zabbix configuration. > > Cordially, > Jon Forrest > > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/2676c1a3-9a95-493a-ae0d-aefaade1ac05%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
