- name: Create config for Zabbix copy: src=consul.conf dest=/etc/zabbix/zabbix_agentd.d/consul.conf notify: - restart zabbix-agent - name: Create consul scripts directory file: path: /etc/zabbix/scripts/consul state: directory mode: 0700 - name: Create script for Zabbix copy: src: consul.py dest: /etc/zabbix/scripts/consul/consul.py mode: 0700 backup: yes