From 02aa54a3485cd2c55ea613008f78524d1f95915d Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Mon, 24 Aug 2020 20:00:05 +0200 Subject: [PATCH] Update to 2020-08-24 20:00 --- roles/repo_zabbix/defaults/main.yml | 2 +- roles/repo_zabbix/tasks/RedHat.yml | 14 ++++++++++++++ roles/zabbix_server/tasks/install.yml | 2 +- 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/roles/repo_zabbix/defaults/main.yml b/roles/repo_zabbix/defaults/main.yml index 4282288..b33a64c 100644 --- a/roles/repo_zabbix/defaults/main.yml +++ b/roles/repo_zabbix/defaults/main.yml @@ -1,2 +1,2 @@ --- -zabbix_major_version: 4.4 +zabbix_major_version: 5.0 diff --git a/roles/repo_zabbix/tasks/RedHat.yml b/roles/repo_zabbix/tasks/RedHat.yml index 92e2d8c..32219bc 100644 --- a/roles/repo_zabbix/tasks/RedHat.yml +++ b/roles/repo_zabbix/tasks/RedHat.yml @@ -47,3 +47,17 @@ includepkgs: - zabbix* tags: repo + +- name: Configure Zabbix frontend repo + yum_repository: + name: zabbix-frontend + description: Zabbix web frontend repository + file: zabbix + baseurl: http://repo.zabbix.com/zabbix/{{ zabbix_major_version }}/rhel/$releasever/$basearch/frontend + gpgcheck: True + gpgkey: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-zabbix + priority: 50 + includepkgs: + - zabbix* + state: "{{ (zabbix_major_version is version('5.0', '>=')) | ternary('present', 'absent') }}" + tags: repo diff --git a/roles/zabbix_server/tasks/install.yml b/roles/zabbix_server/tasks/install.yml index 565a754..376053c 100644 --- a/roles/zabbix_server/tasks/install.yml +++ b/roles/zabbix_server/tasks/install.yml @@ -4,7 +4,7 @@ yum: name: - zabbix-server-mysql - - zabbix-web-mysql + - zabbix-web - zabbix-java-gateway - zabbix-get - mariadb