--- # Packages from fws provides a "zabbix" package. # But upgrading this one with the packages from Zabbix repo will # pull all the servers and proxies packages, which we do not want - name: Remove old zabbix package yum: name: - zabbix state: absent tags: zabbix - name: Install Zabbix Agent and additional scripts yum: name: - zabbix-agent - zabbix-agent-addons - openssl - "{{ ansible_distribution_major_version is version('8', '<') | ternary('policycoreutils-python','python3-policycoreutils') }}" state: "{{ zabbix_agent_update | ternary('latest','present') }}" notify: restart zabbix-agent tags: zabbix