diff --git a/roles/zabbix/zabbix_server/tasks/install.yml b/roles/zabbix/zabbix_server/tasks/install.yml index 050f4d1412..322faac6ad 100644 --- a/roles/zabbix/zabbix_server/tasks/install.yml +++ b/roles/zabbix/zabbix_server/tasks/install.yml @@ -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