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

Implement support for macOS #298

Closed gunnarbeutner closed 4 years ago

gunnarbeutner commented 4 years ago

Description of PR

This PR implements support for macOS. I've tested the changes with Zabbix 4.4.4 and macOS 10.14. In my tests the role was able to successfully install and configure the Zabbix agent.

I've also bumped the version for zabbix_version_long to 4.4.4, because I figured that re-using that variable for macOS would make sense. The version change might affect Windows.

The PR also ensures that the Zabbix agent is restarted after PSK and user parameter changes. This previously didn't work on Windows (see tasks/tlspsk_auto.yml and tasks/userparameter.yml).

Type of change

Feature Pull Request

dj-wasabi commented 4 years ago

Looks good! Thanks! 👍