ansible-collections / community.zabbix

Zabbix Ansible modules
http://galaxy.ansible.com/community/zabbix
Other
321 stars 280 forks source link

Agent: 2.5.0 fail when zabbix_agent_listenip variable is undefined #1244

Closed sblaisot closed 4 months ago

sblaisot commented 4 months ago
SUMMARY

2.5.0 fail when zabbix_agent_listenip variable is undefined

ISSUE TYPE
COMPONENT NAME

agent

TASK [community.zabbix.zabbix_agent : Default agent_listenip to all when not specified] ***
fatal: [target]: FAILED! => {"msg": "The conditional check 'not (zabbix_agent_listenip)' failed. The error was: error while evaluating conditional (not (zabbix_agent_listenip)): 'zabbix_agent_listenip' is undefined. 'zabbix_agent_listenip' is undefined\n\nThe error appears to be in '/path/to/collections/ansible_collections/community/zabbix/roles/zabbix_agent/tasks/Linux.yml': line 68, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: \"Default agent_listenip to all when not specified\"\n  ^ here\n"}