any response please?

On Friday, 26 January 2018 00:39:55 UTC-5, Andrew Morgan wrote:
>
>
> The full traceback is:
>   File "/tmp/ansible_XXjWDO/ansible_module_zabbix_maintenance.py", line 
> 164, in <module>
>     from zabbix_api import ZabbixAPI
>
> fatal: [zabbix_server]: FAILED! => {
>     "changed": false, 
>     "invocation": {
>         "module_args": {
>             "collect_data": true, 
>             "desc": "Setting up maintenance window for builds", 
>             "host_groups": [
>                 "Discovered host", 
>                 "Linux servers"
>             ], 
>             "host_names": null, 
>             "http_login_password": null, 
>             "http_login_user": null, 
>             "login_password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", 
>             "login_user": "Admin", 
>             "minutes": 90, 
>             "name": "Zabbix123", 
>             "server_url": "http:/l.net", 
>             "state": "present", 
>             "timeout": 10
>         }
>     }, 
>     "msg": "Missing required zabbix-api module (check docs or install 
> with: pip install zabbix-api)"
>
>
>
> On Friday, January 26, 2018 at 12:36:38 AM UTC-5, Andrew Morgan wrote:
>>
>> Thank you helping, but I am still getting the same error:
>> ansible-playbook playbook.yaml 
>>
>> PLAY [zabbix] 
>> ************************************************************************
>>
>> TASK [Gathering Facts] 
>> ***************************************************************
>> ok: [zabbix_server]
>>
>> TASK [Install requirement] 
>> ***********************************************************
>> ok: [zabbix_server]
>>
>> 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
>>
>> PLAY RECAP 
>> ***************************************************************************
>> zabbix_server              : ok=2    changed=0    unreachable=0    failed
>> =1 
>>
>>   
>> on the zabbix server:
>> root@zabbix ~]# python --version
>> Python 2.7
>> [root@zabbix ~]# pip install zabbix-api
>> Requirement already satisfied: zabbix-api in /usr/local/lib/python2.7/
>> site-packages
>> [root@zabbix ~]# 
>>
>>
>>
>>
>> On Wednesday, January 24, 2018 at 2:39:09 AM UTC-5, Kai Stian Olstad 
>> wrote:
>>>
>>> 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/5c7e7a74-e8be-4eaf-b4eb-c895da9cf80a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to