main.yml 401 B

123456789101112131415161718
  1. - name: Create config for Zabbix
  2. copy: src=consul.conf dest=/etc/zabbix/zabbix_agentd.d/consul.conf
  3. notify:
  4. - restart zabbix-agent
  5. - name: Create consul scripts directory
  6. file:
  7. path: /etc/zabbix/scripts/consul
  8. state: directory
  9. mode: 0700
  10. - name: Create script for Zabbix
  11. copy:
  12. src: consul.py
  13. dest: /etc/zabbix/scripts/consul/consul.py
  14. mode: 0700
  15. backup: yes