zabbix.yml 357 B

1234567891011
  1. - name: Install Zabbix agent
  2. apt: pkg={{ item }} state=installed update_cache=yes
  3. with_items:
  4. - zabbix-agent
  5. when: with_zabbix_agent
  6. - name: Install Zabbix agent config file
  7. template: src='zabbix/agent.conf.j2' dest='/etc/zabbix/zabbix_agentd.conf' owner=root group=root mode=0600
  8. when: with_zabbix_agent
  9. notify:
  10. - Restart zabbix agent