Ansible 2.1, Zabbix 3.0.3, latest zabbix-api module.
I’m trying to write a playbook to update a Zabbix hosts agent interface IP. The host already exists, it has an agent interface (with an incorrect IP). It looks like my playbook is failing because a host group isn’t specified, but I don’t want to change any existing host group info (or anything aside from the interface IP)…
Error:
ESTABLISH LOCAL CONNECTION FOR USER: ansible
EXEC /bin/sh -c ‘LANG=C LC_ALL=C LC_MESSAGES=C /usr/bin/python && sleep 0’
fatal: [superrad-mz → localhost]: FAILED! => {“changed”: false, “failed”: true, “invocation”: {“module_args”: {“force”: true, “host_groups”: null, “host_name”: “superrad-mz”, “http_login_password”: null, “http_login_user”: null, “interfaces”: [{“ip”: “64.54.31.174”, “main”: 1, “port”: 10050, “type”: 1, “useip”: 1}], “inventory_mode”: null, “link_templates”: null, “login_password”: “VALUE_SPECIFIED_IN_NO_LOG_PARAMETER”, “login_user”: “zabmin”, “proxy”: null, “server_url”: “https://raddix.radiology.ucsf.edu”, “state”: “present”, “status”: “enabled”, “timeout”: 10}, “module_name”: “zabbix_host”}, “msg”: “Specify at least one group for updating host ‘superrad-mz’.”}
…ignoring
Playbook: