1 Star 6 Fork 4

西门飞冰 / ansible-yml

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
zabbix-agent-install.yml 732 Bytes
一键复制 编辑 原始数据 按行查看 历史
root 提交于 2015-12-25 23:41 . update zabbix
- hosts: 172.16.4.103
remote_user: root
vars:
- zabbix_server_address: 172.16.4.101
tasks:
- name: copy zabbix package
copy: src=./zabbix-agent/ dest=/data/package/zabbix/
- name: install zabbix package
shell: cd /data/package/zabbix/; yum -y install zabbix-2.4.5-1.el6.x86_64.rpm zabbix-agent-2.4.5-1.el6.x86_64.rpm zabbix-sender-2.4.5-1.el6.x86_64.rpm
- name: copy zabbix conf
template: src=./zabbix-agent/zabbix_agentd.conf.j2 dest=/etc/zabbix/zabbix_agentd.conf
notify:
- restart zabbix-agent
tags:
- conf
- name: add zabbix server
service: name=zabbix-agent enabled=true state=started
handlers:
- name: restart zabbix-agent
service: name=zabbix-agent state=restarted
Shell
1
https://gitee.com/fblinux/ansible-yml.git
git@gitee.com:fblinux/ansible-yml.git
fblinux
ansible-yml
ansible-yml
master

搜索帮助