From 5f5262f1c02a57bf1b5efb6b6e21129571599af3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrik=20Polakovi=C4=8D?= Date: Mon, 4 Sep 2023 11:55:28 +0200 Subject: [PATCH] Zabbix: add zabbix agent to notifs playbooks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Patrik Polakovič --- playbooks/groups/notifs-backend.yml | 13 +++++++------ playbooks/groups/notifs-web.yml | 1 + 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/playbooks/groups/notifs-backend.yml b/playbooks/groups/notifs-backend.yml index a49467525a..05973dc84a 100644 --- a/playbooks/groups/notifs-backend.yml +++ b/playbooks/groups/notifs-backend.yml @@ -13,9 +13,9 @@ gather_facts: True vars_files: - - /srv/web/infra/ansible/vars/global.yml - - "/srv/private/ansible/vars.yml" - - /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml + - /srv/web/infra/ansible/vars/global.yml + - "/srv/private/ansible/vars.yml" + - /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml pre_tasks: - import_tasks: "{{ tasks_path }}/yumrepos.yml" @@ -30,6 +30,7 @@ # when: env != "staging" } - ipa/client - nagios_client + - {role: zabbix/zabbix_agent, when: env == "staging"} - collectd/base - fedmsg/base - role: keytab/service @@ -72,9 +73,9 @@ when: inventory_hostname.startswith('notifs-backend01.iad2') vars_files: - - /srv/web/infra/ansible/vars/global.yml - - "/srv/private/ansible/vars.yml" - - /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml + - /srv/web/infra/ansible/vars/global.yml + - "/srv/private/ansible/vars.yml" + - /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml handlers: - import_tasks: "{{ handlers_path }}/restart_services.yml" diff --git a/playbooks/groups/notifs-web.yml b/playbooks/groups/notifs-web.yml index 9ff9e29bfe..663755374d 100644 --- a/playbooks/groups/notifs-web.yml +++ b/playbooks/groups/notifs-web.yml @@ -22,6 +22,7 @@ - base - rkhunter - nagios_client + - {role: zabbix/zabbix_agent, when: env == "staging"} - hosts - {role: openvpn/client, when: env != "staging"}