On 24.01.2018 07:52, Andrew Morgan wrote:
I keep getting the error:

TASK [This is installation]
**********************************************************
fatal: [zabbix_server]: FAILED! => {"changed": false, "msg": "Missing
required zabbix-api module (check docs or install with: pip install
zabbix-api)"}
    to retry, use: --limit @/ansible/playbook.retry


I have installed pip zabbix-api , zabbix_api, pyzabbix and neither works. I
have even tried installing them to the targe directory ansible has as
python module location /usr/lib/python2.6/site-packages/ansible
 but I still get that error.Can someone please help.

In the documentation[1] is says
"Requirements (on host that executes module)"

So you need to install it on the remote host, zabbix_server in your case. so just add this task to you play

- name: Install requirement
  pip:
    name: zabbix-api


[1] http://docs.ansible.com/ansible/latest/zabbix_maintenance_module.html

--
Kai Stian Olstad

--
You received this message because you are subscribed to the Google Groups "Ansible 
Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/fd6194c8d4b3986986e231ad1afb02a5%40olstad.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to