zabbix: add zabbix-agent to groups/virthost playbook

Signed-off-by: David Kirwan <davidkirwanirl@gmail.com>
This commit is contained in:
David Kirwan 2023-08-29 11:14:55 +01:00
parent cdc84bf0ad
commit a0ddb8fac4
No known key found for this signature in database
GPG key ID: A5893AB6474AC37D

View file

@ -38,17 +38,18 @@
roles:
- base
- { role: rkhunter }
- { role: nagios_client }
- {role: rkhunter}
- {role: nagios_client}
- {role: zabbix/zabbix_agent, when: env == "staging"}
- hosts
- { role: openvpn/client, when: vpn|bool }
- {role: openvpn/client, when: vpn|bool}
- ipa/client
- { role: collectd/base }
- { role: iscsi_client, when: "inventory_hostname.startswith(('bvmhost-x86-06', 'bvmhost-x86-07')) and datacenter == 'iad2'" }
- {role: collectd/base}
- {role: iscsi_client, when: "inventory_hostname.startswith(('bvmhost-x86-06', 'bvmhost-x86-07')) and datacenter == 'iad2'"}
- sudo
- virthost
- { role: linux-system-roles.nbde_client, tags: ['nbde_client'], when: datacenter == 'iad2' and nbde|bool }
- { role: serial-console, when: datacenter == 'iad2' and not inventory_hostname.startswith('buildvmhost-s390x') }
- {role: linux-system-roles.nbde_client, tags: ['nbde_client'], when: datacenter == 'iad2' and nbde|bool}
- {role: serial-console, when: datacenter == 'iad2' and not inventory_hostname.startswith('buildvmhost-s390x')}
tasks:
- import_tasks: "{{ tasks_path }}/motd.yml"