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_agent_tlsconnect and zabbix_agent_tlsaccept are mixed #205

Closed noonedeadpunk closed 5 years ago

noonedeadpunk commented 5 years ago

Describe the bug zabbix_agent_tlsconnect and zabbix_agent_tlsaccept are mixed up in tasks/main.yml: https://github.com/dj-wasabi/ansible-zabbix-agent/blob/master/tasks/main.yml#L189-L190

Expected behavior I suggest it to be like this:

    tls_connect: "{{ zabbix_agent_tls_config[zabbix_agent_tlsconnect if zabbix_agent_tlsconnect else 'unencrypted'] }}"
    tls_accept: "{{ zabbix_agent_tls_config[zabbix_agent_tlsaccept if zabbix_agent_tlsaccept else 'unencrypted'] }}"