community.zabbix icon indicating copy to clipboard operation
community.zabbix copied to clipboard

zabbix_agent_version ignored on Ubuntu 20.x

Open unbreakabl3 opened this issue 3 years ago • 3 comments

SUMMARY

When using zabbix_agent_version: 5.0 for example, on RHEL, CentOS, Rocky its is installing the 5.0, but on Ubuntu its always installing the latest. Currently, its always installing 6.0.4

ISSUE TYPE
  • Bug Report
COMPONENT NAME

community.zabbix.zabbix_agent

ANSIBLE VERSION
ansible [core 2.12.5]
CONFIGURATION
DISPLAY_SKIPPED_HOSTS(/Users/user/Ansible/ansible-awx/ansible.cfg) = False
OS / ENVIRONMENT / Zabbix Version

Ubuntu 20.04 - installing wrong Zabbix agent version CentOS - working as expected

STEPS TO REPRODUCE

set zabbix_agent_version: 5.0 as a variable and run the playbook on Ubuntu

EXPECTED RESULTS

Zabbix Agent 5.0 should be installed on Ubuntu

ACTUAL RESULTS

Latest 6.x is always installed

unbreakabl3 avatar May 25 '22 11:05 unbreakabl3

I did this workaround by setting the following variables to get the right version and it worked but needs to be fixed in the task.

zabbix_agent_version: 5.0 zabbix_agent_package: zabbix-agent=1:5.0.24-1+focal zabbix_sender_package: zabbix-sender=1:5.0.24-1+focal zabbix_get_package: zabbix-get=1:5.0.24-1+focal

andrebossi avatar Jun 03 '22 20:06 andrebossi

I did this workaround by setting the following variables to get the right version and it worked but needs to be fixed in the task.

zabbix_agent_version: 5.0 zabbix_agent_package: zabbix-agent=1:5.0.24-1+focal zabbix_sender_package: zabbix-sender=1:5.0.24-1+focal zabbix_get_package: zabbix-get=1:5.0.24-1+focal

Great. Thanks a lot. I will test it next week. Probably, the documentation should be updated as well.

unbreakabl3 avatar Jun 03 '22 20:06 unbreakabl3

I had a similar issue. My solution was to manually apt remove zabbix-agent and rerun the role.

ortzinator avatar Sep 23 '22 17:09 ortzinator