--- # 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_packages }}" state: "{{ zabbix_agent_update | ternary('latest','present') }}" notify: restart zabbix-agent tags: zabbix