main.yml 975 Bytes
Newer Older
Lars Beckers's avatar
Lars Beckers committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
---

- name: ensure the agent package is installed
  apt: name=zabbix-agent state=latest
  notify:
    - restart zabbix agent
  tags:
    - packages
    - zabbix

# TODO
- name: ensure the agent is configured
  template: src=zabbix_agentd.conf.j2 dest=/etc/zabbix/zabbix_agentd.conf
  notify:
    - restart zabbix agent
  tags:
    - zabbix

# TODO
#- name: create directory for external scripts
#  file: path=/usr/local/lib/zabbix/externalscripts state=directory owner=root group=root mode=0755
#  tags:
#    - service
#    - zabbix
# TODO e.g. disk i/o, smart, cups, ...

- name: ensure the server is enabled and running
  service: name=zabbix-agent state=running enabled=yes
  tags:
    - service
    - zabbix

33
# unfortunately this packages is totaly useless because of some ubuntu specific dependencies
34
35
36
37
38
39
- name: install debian update checks
  apt: update_cache=yes  name=zabbix-check-dpkg state=latest
  tags:
    - zabbix
    - packages
    - chr
40

Lars Beckers's avatar
Lars Beckers committed
41
- meta: flush_handlers