ansible-ppm/roles/ppm/tasks/zabbix.yml

13 lines
434 B
YAML

- name: Configure firewall options
ansible.builtin.copy:
dest: /home/.zabbixagenttemplate
group: root
owner: root
mode: "0644"
src: ppmzabbixagent
- name: Render zabbix template
ansible.builtin.command: ppm template /home/.zabbixagenttemplate /etc/zabbix/zabbix_agent2.d/ppm.conf
register: zabbix_render
changed_when: "'content did not change' not in zabbix_render.stdout"
notify: Restart zabbix-agent2