Closed oncipriani closed 7 years ago
@cove, @harrisongu, ping. This issue is waiting on your response. click here for bot help
This repository has been locked. All new issues and pull requests should be filed in https://github.com/ansible/ansible
Please read through the repomerge page in the dev guide. The guide contains links to tools which automatically move your issue or pull request to the ansible/ansible repo.
This issue was migrated to https://github.com/ansible/ansible/issues/29413
ISSUE TYPE
COMPONENT NAME
zabbix_host
ANSIBLE VERSION
CONFIGURATION
None
OS / ENVIRONMENT
N/A
SUMMARY
The module "zabbix_host" fails if called to create/update a host on Zabbix when "force: false".
STEPS TO REPRODUCE
EXPECTED RESULTS
When trying to register a host that is already registered and with "force: false", I expected that the zabbix_host module would just return gracefuly with something like "failed: false" and "changed: false".
ACTUAL RESULTS
If the host already exists on Zabbix server, the playbook exits with a "MODULE FAILURE". If the host does not already exist, the playbook is executed correclty and the host is created as expected.
Here is the output of ansible-playbook with "-vvv":