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 248 forks source link

zabbix_selinux: True #242

Closed patsevanton closed 5 years ago

patsevanton commented 5 years ago

If zabbix_selinux: False i get error:

TASK [dj-wasabi.zabbix-agent : Install policycoreutils-python] *****************
skipping: [zabbix]

and get error:

TASK [dj-wasabi.zabbix-agent : Allow zabbix_agent to start (SELinux)] **********
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ImportError: No module named seobject
fatal: [zabbix]: FAILED! => {"changed": false, "msg": "Failed to import the required Python library (policycoreutils-python) on zabbix's Python /usr/bin/python. Please read module documentation and install in the appropriate location"}
dj-wasabi commented 5 years ago

You can override it by either setting it in your playbook or in the group_vars or host_vars. The default is set to False as this is general and in case for you and others, you'll have to override like how I mentioned before.

Therefor I close this PR.