Ansibleplaybook-zabbix-agent-install
tar包需到官网下载
#vim agent-install.yaml
- host: zabbixagent
task:
-name:copy tar
copy:src=/opt/zabbix_agents_2.4.4.aix6100.powerpc.tar.gz dest=/opt/zabbix_agents_2.4.4.aix6100.powerpc.tar.gz
-name:copy shell
#copy前修改脚本中serverip为zabbixip
copy:src=/opt/linux-agent.sh dest=/opt/linux-agent.sh
-name:run shell
command:./opt/linux-agent.sh