ansible部署zabbix+mariadb
我只做了简单的部署,没有涉及到任何复杂操作。
实验环境:
两台虚拟机,一台作为ansible,一台部署zabbix+mariadb
ansible:hostname=centos4 ip=192.168.100.135
Zabbix+mariadb:hostname=Zabbix ip=192.168.100.137
在ansible配置源:
curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
curl -o /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
下载zabbix源:copy到远程
rpm -Uvh https://repo.zabbix.com/zabbix/4.2/rhel/7/x86_64/zabbix-release-4.2-1.el7.noarch.rpm
关闭防火墙:使用service
ansible all -m service -a ‘name=firewalld state=stopped’
1, 关闭selinux:使用shell模块
ansible all -m

本文介绍了如何使用Ansible自动化部署Zabbix监控系统及MariaDB数据库。实验环境包括两台虚拟机,一台作为Ansible控制机,另一台作为Zabbix与MariaDB的部署目标。内容涵盖配置YUM源、关闭防火墙与SELinux、传输文件、创建数据库、安装Zabbix组件以及处理安装过程中可能出现的问题。
最低0.47元/天 解锁文章
421

被折叠的 条评论
为什么被折叠?



