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