Zabbix: Add zabbix agent to groups/mirrormanager playbook

Signed-off-by: Patrik Polakovič <patrik@alphamail.org>
This commit is contained in:
Patrik Polakovič 2023-09-04 11:25:38 +02:00
parent 952f0da9a4
commit 34a4c57dd4

View file

@ -16,13 +16,14 @@
- base
- rkhunter
- nagios_client
- {role: zabbix/zabbix_agent, when: env == "staging"}
- hosts
- { role: openvpn/client, when: env != "staging" and inventory_hostname.startswith('mm-frontend') }
- {role: openvpn/client, when: env != "staging" and inventory_hostname.startswith('mm-frontend')}
- ipa/client
- sudo
- collectd/base
- { role: nfs/client, when: inventory_hostname.startswith('mm-backend01'), mnt_dir: '/srv/pub', nfs_src_dir: 'fedora_ftp/fedora.redhat.com/pub', mount_stg: true }
- { role: nfs/client, when: inventory_hostname.startswith('mm-backend01'), mnt_dir: '/srv/pub/archive', nfs_src_dir: 'fedora_ftp_archive', mount_stg: true }
- {role: nfs/client, when: inventory_hostname.startswith('mm-backend01'), mnt_dir: '/srv/pub', nfs_src_dir: 'fedora_ftp/fedora.redhat.com/pub', mount_stg: true}
- {role: nfs/client, when: inventory_hostname.startswith('mm-backend01'), mnt_dir: '/srv/pub/archive', nfs_src_dir: 'fedora_ftp_archive', mount_stg: true}
pre_tasks:
- import_tasks: "{{ tasks_path }}/yumrepos.yml"
@ -65,9 +66,9 @@
roles:
- mirrormanager/crawler
- { role: rsyncd,
when: env != "staging" }
- { role: openvpn/client, when: datacenter != "iad2" }
- {role: rsyncd,
when: env != "staging"}
- {role: openvpn/client, when: datacenter != "iad2"}
handlers:
- import_tasks: "{{ handlers_path }}/restart_services.yml"