Update roles/zabbix/zabbix_server/tasks/install.yml - Seperated Prod and Stg

Prod gets the same version it already has(6.0 LTS) and Stg now gets 7.0 LTS
This commit is contained in:
Mark Rosenbaum 2025-03-10 13:57:29 +00:00 committed by dkirwan
parent 81ee6adbe2
commit 01f5e19cf6

View file

@ -1,6 +1,10 @@
---
# tasks file for zabbix-server
# Install guide: Zabbix 7 LTS, postgres and nginx:
# Install guide: Zabbix 6 LTS, postgres and nginx:
# https://www.zabbix.com/download?zabbix=6.0&os_distribution=red_hat_enterprise_linux&os_version=9&components=server_frontend_agent&db=pgsql&ws=nginx
# Install guide: Zabbix 7 LTS(Used in Stg), postgres and nginx:
# https://www.zabbix.com/download?zabbix=7.0&os_distribution=red_hat_enterprise_linux&os_version=9&components=server_frontend_agent&db=pgsql&ws=nginx
- name: Configure the EPEL repository
@ -15,8 +19,16 @@
tags:
- configure-dnf
- name: Install the zabbix rpm
- name: Install the zabbix rpm (staging)
ansible.builtin.command: "rpm -Uvh https://repo.zabbix.com/zabbix/7.0/rhel/9/x86_64/zabbix-release-latest-7.0.el9.noarch.rpm"
when: env == "staging"
ignore_errors: true
tags:
- packages
- name: Install the zabbix rpm (non-staging)
ansible.builtin.command: "rpm -Uvh https://repo.zabbix.com/zabbix/6.0/rhel/9/x86_64/zabbix-release-latest.el9.noarch.rpm"
when: env != "staging"
ignore_errors: true
tags:
- packages