dj-wasabi / ansible-zabbix-agent

Installing and maintaining zabbix-agent for RedHat/Debian/Ubuntu/Windows/Suse.
https://galaxy.ansible.com/dj-wasabi/zabbix-agent
MIT License
327 stars 249 forks source link

"No package matching 'zabbix-sender' is available" when using Debian repo #321

Closed raleonardo closed 4 years ago

raleonardo commented 4 years ago

Describe the bug since d4a20c3d916e6ab3f8f28706cfad6ce58c9eb344, zabbix_agentpackages was split into: zabbix{agent,sender,get}_package.

This breaks the support for using the debian repo, as sender and get packages are not available there.

Can this change be reverted? Is there any specific reason for these to be separate variables instead of an overridable array?

Installation method/version

Ansible Version

2.8

Targetted hosts Concerns the following OS(es):

Expected behavior

Additional context zabbix_repo: False zabbix_agent_packages: [ zabbix-agent ] {"attempts": 3, "changed": false, "msg": "No package matching 'zabbix-sender' is available"}

dj-wasabi commented 4 years ago

Hi @raleonardo

I provided a PR, is there a possibility that you can test this before I merge it? Thanks!

Kind regards, Werner

raleonardo commented 4 years ago

hi @dj-wasabi thanks for fixing this I tested the PR and it seems to work

dj-wasabi commented 4 years ago

Thanks @raleonardo ! Is merged, hopefully this weekend I have a new release for the Galaxy.