Zabbix: add zabbix agent to groups/value playbook

Signed-off-by: Patrik Polakovič <patrik@alphamail.org>
This commit is contained in:
Patrik Polakovič 2023-09-05 10:09:38 +02:00
parent c7d1123d37
commit c49697a0a3

View file

@ -16,34 +16,35 @@
- base - base
- rkhunter - rkhunter
- nagios_client - nagios_client
- {role: zabbix/zabbix_agent, when: env == "staging"}
- hosts - hosts
- { role: openvpn/client, - {role: openvpn/client,
when: env != "staging" } when: env != "staging"}
- ipa/client - ipa/client
- { role: keytab/service, - {role: keytab/service,
owner_user: daemon, owner_user: daemon,
owner_group: daemon, owner_group: daemon,
service: ursabot, service: ursabot,
when: inventory_hostname.startswith('value02.stg') } when: inventory_hostname.startswith('value02.stg')}
- { role: keytab/service, - {role: keytab/service,
owner_user: daemon, owner_user: daemon,
owner_group: daemon, owner_group: daemon,
service: zodbot, service: zodbot,
when: inventory_hostname.startswith('value02.iad2') } when: inventory_hostname.startswith('value02.iad2')}
- collectd/base - collectd/base
- apache - apache
- { role: fedmsg/base, - {role: fedmsg/base,
when: inventory_hostname.startswith('value01') } when: inventory_hostname.startswith('value01')}
- { role: fedmsg/irc, - {role: fedmsg/irc,
when: inventory_hostname.startswith('value01') } when: inventory_hostname.startswith('value01')}
- supybot - supybot
- sudo - sudo
- rsyncd - rsyncd
- role: collectd/fedmsg-service - role: collectd/fedmsg-service
process: fedmsg-irc process: fedmsg-irc
- { role: mote, - {role: mote,
when: inventory_hostname.startswith('value01') } when: inventory_hostname.startswith('value01')}
- { role: nfs/client, when: env != "staging", nfs_mount_opts: "rw,hard,bg,intr,noatime,nodev,nosuid,nfsvers=3", mnt_dir: '/srv/', nfs_src_dir: 'fedora_value_prod' } - {role: nfs/client, when: env != "staging", nfs_mount_opts: "rw,hard,bg,intr,noatime,nodev,nosuid,nfsvers=3", mnt_dir: '/srv/', nfs_src_dir: 'fedora_value_prod'}
pre_tasks: pre_tasks:
- import_tasks: "{{ tasks_path }}/yumrepos.yml" - import_tasks: "{{ tasks_path }}/yumrepos.yml"