文章目录 一、Ansible-playbook部署zabbix-mysql 1.1 mariadb 1、 tasks 2、 触发器:handlers 3、静态文件 1.2 zabbix-server 1、tasks 2、handlers 3、templates 1.3 zabbix-agent 1、tasks 2、handlers 3、templates 1.4 zabbix-web 1、tasks 2、handlers 3、templates 1.5 zibbix.yml文件 一、Ansible-playbook部署zabbix-mysql 部署的主机及ip 基本思路:四个角色来配置,总的yml文件调度 1.1 mariadb 1、 tasks 2、 触发器:handlers 3、静态文件 1) mariadb的配置文件: /etc/my.cnf中,加入:charactet_set_server=utf8 2) 数据库zabbix的表:create.sql.gz 在zabbix-server上安装yum install zabbix-server-mysql -y