标签:ansible
--- - hosts: urun remote_user: root tasks: - name: copy zabbix key config file copy: src=/etc/zabbix/zabbix_agentd.conf.d/get_disk_io.conf dest=/etc/zabbix/zabbix_agentd.conf.d/ - name: copy disk io script file copy: src=/etc/zabbix/get_sda_riops.py dest=/etc/zabbix/ - name: restart zabbix agentd service service: name=zabbix-agent state=restarted - hosts: zabbix remote_user: root tasks: - name: copy zabbix key config file copy: src=/etc/zabbix/zabbix_agentd.conf.d/get_disk_io.conf dest=/usr/local/etc/zabbix_agentd.conf.d/ - name: copy disk io script file copy: src=/etc/zabbix/get_sda_riops.py dest=/etc/zabbix/ - name: stop zabbix agentd service shell: pkill zabbix_agentd - name: start zabbix agentd service shell: zabbix_agentd
本文出自 “运维交流Q群:223843163” 博客,请务必保留此出处http://freshair.blog.51cto.com/8272891/1904837
一个与zabbix-agentd有关的playbooks任务
标签:ansible
原文地址:http://freshair.blog.51cto.com/8272891/1904837