# Zabbix\_host extra module - cannot comunicate with zabbix api over ssl with self signed cert.

**URL:** <https://forum.ansible.com/t/zabbix-host-extra-module-cannot-comunicate-with-zabbix-api-over-ssl-with-self-signed-cert/23420>\
**Category:** Ansible Project\
**Tags:** ubuntu\
**Created:** [January 10, 2017, 5:18pm UTC](https://forum.ansible.com/t/zabbix-host-extra-module-cannot-comunicate-with-zabbix-api-over-ssl-with-self-signed-cert/23420 "2017-01-10T17:18:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![j2b](https://avatars.discourse-cdn.com/v4/letter/j/919ad9/32.png) [@j2b](https://forum.ansible.com/u/j2b)\
**Post date:** [January 10, 2017, 5:18pm UTC](https://forum.ansible.com/t/zabbix-host-extra-module-cannot-comunicate-with-zabbix-api-over-ssl-with-self-signed-cert/23420/1 "2017-01-10T17:18:43Z")

</div>

Hey, guys!

Working on Ansible v2.2 role for registering host on Zabbix server (extra module zabbix\_host: [http://docs.ansible.com/ansible/zabbix\_hostmacro\_module.html](http://docs.ansible.com/ansible/zabbix_hostmacro_module.html)).

Role --check fail, as there’s an error of SSL cert verification, due to certificate being self signed. Zabbix server is accessible only over SSL, but not commercial one, with redirects from non-SSL.

**Ansible error message** :

`Failed to connect to Zabbix server: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590)>`

**Some facts:**

- Ansible -v2.2.0.0 Ubuntu server 16.04
- pip v9.x (–upgraded from v8.x)
- zabbix-api present

**Question:**

Does anybody know, if there’s a solution without modifying module (e.g., system/ansible wise), or this feature is not yet implemented in extra module?
