thank you for "Ansible is hard coded to /usr/bin/python"..resolved

On Wednesday, January 24, 2018 at 1:52:57 AM UTC-5, Andrew Morgan wrote:
>
> Hello All, 
>
> My ansible module is 
>
> ansible 2.4.2.0
>   config file = /ansible/ansible.cfg
>   configured module search path = [u'/root/.ansible/plugins/modules', u
> '/usr/share/ansible/plugins/modules']
>   ansible python module location = /usr/lib/python2.6/site-packages/
> ansible
>   executable location = /usr/bin/ansible
>   python version = 2.6.6 (r266:84292, Aug 18 2016, 15:13:37) [GCC 4.4.7 
> 20120313 (Red Hat 4.4.7-17)]
>
>
> my play is 
>
> - hosts: zabbix
>
>   tasks:
>   - name: This is installation
>     zabbix_maintenance:
>      name: Zabbix123
>      host_groups: Discovered host,Linux servers
>      state: present
>      minutes: 90
>      server_url: http://zabbix.socialpatrol.net
>      login_user: Admin
>      login_password: yORKKEI1!
>      desc: Setting up maintenance window for builds
>
>
> my issue is that when I try to run ansible-playbook playbook.yaml
>
> 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.
>
>
>

-- 
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/4703f4f3-a5aa-4403-813c-beea893e338c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to