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

RHEL 7 broken with proxy option in repo #322

Closed pyrodex closed 4 years ago

pyrodex commented 4 years ago

Describe the bug When using the latest version of this code it seems RHEL 7 breaks after installing the REPO due to the fact you put an empty proxy line in there when no proxy is defined. RedHat requires the proxy line to be populated or completely GONE if you are not using a proxy.

This was changed in 12/2019 from Git (c644ffc987393a380891dd9016ea698147d0910c) on the RedHat.yml when building the repo to ALWAYS include the proxy line and this should really be changed to an IF a proxy is defined include it and IF NOT don't include the line at all. Installation method/version

Targetted hosts Concerns the following OS(es):

Expected behavior The Yum repo is created with the proper configuration and proxy is added or removed as defined by variables