一、實(shí)驗(yàn)環(huán)境
操作系統(tǒng):CentOS7.5 Minimal?
二、軟件安裝
# yum? -y install epel-release
# yum? -y install ansible?
# yum??-y?install?python-setuptools
# easy_install??pip
# pip?install?zabbix-api

三、參考鏈接
Monitoring modules
https://docs.ansible.com/ansible/2.5/modules/list_of_monitoring_modules.html

ansible-playbook調(diào)用zabbix-api自動(dòng)添加主機(jī)
https://blog.csdn.net/wh211212/article/details/82763493
使用ansible添加zabbix的主機(jī)監(jiān)控
https://blog.csdn.net/felix_yujing/article/details/78166295
Zabbix Documentation 4.0
https://www.zabbix.com/documentation/4.2/manual/api/reference/hostinterface/object
zabbix-agent-playbook
https://github.com/w4rppy/zabbix-agent-playbook
ansible批量添加hosts到zabbix-server
http://blog.hhzzer.com/posts/57e090d5
Docs ? zabbix_host – Create/update/delete Zabbix hosts
https://docs.ansible.com/ansible/latest/modules/zabbix_host_module.html
curl: (51) Unable to communicate securely with peer: requested domain name does not match the server's certificate.報(bào)錯(cuò)
https://www.cnblogs.com/weifeng1463/p/8582921.html
Ansible? zabbix_host 模塊出現(xiàn)? SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed錯(cuò)誤
https://blog.csdn.net/wszhtc/article/details/79467024
https://blog.csdn.net/hou_angela/article/details/80492468
Certificate verification in Python standard library HTTP clients
https://access.redhat.com/articles/2039753#controlling-certificate-verification-7
A specific template import via zabbix_template module in Ansible fails with HTTP 500
https://support.zabbix.com/browse/ZBX-15282
Json/Yaml轉(zhuǎn)換
http://blog.w3cub.com/tools/jsonyamlconvert
YAML、YML在線編輯器(格式化校驗(yàn))
https://www.bejson.com/validators/yaml_editor