hello, i want to use snmp_facts module , and i installed the pysnmp,
but everytime i execute the module, returns the error "msg": "Missing required pysnmp module (check docs)" i really can not figure it out, need some help; and i tried to import manully bye command line, there is no error on that: (AnsibleCmdb) [yd_hzj@localhost ansible-snmp-facts-master]$ python Python 2.7.5 (default, Jul 31 2016, 13:13:56) [GCC 4.8.2 20140120 (Red Hat 4.8.2-16)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> >>> from pysnmp.entity.rfc3413.oneliner import cmdgen >>> here is my playbook output (AnsibleCmdb) [yd_hzj@localhost ansible-snmp-facts-master]$ ansible-playbook snmp_facts-playbook.yml -i 10.223.53.3, -vvv Using /home/yd_hzj/project/rango/ansible/ansible.cfg as config file PLAYBOOK: snmp_facts-playbook.yml ********************************************** 1 plays in snmp_facts-playbook.yml PLAY [10.223.53.3] ************************************************************* TASK [Get SNMP information from switches] ************************************** task path: /home/yd_hzj/test/ansible-snmp-facts-master/snmp_facts-playbook.yml:6 <10.223.53.3> ESTABLISH LOCAL CONNECTION FOR USER: yd_hzj <10.223.53.3> EXEC /bin/sh -c 'LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 /usr/bin/python && sleep 0' fatal: [10.223.53.3]: FAILED! => {"changed": false, "failed": true, "invocation": {"module_args": {"authkey": null, "community": "aaabbb", "host": "10.223.53.3", "integrity": null, "level": null, "privacy": null, "privkey": null, "removeplaceholder": null, "username": null, "version": "v2"}, "module_name": "snmp_facts"}, "msg": "Missing required pysnmp module (check docs)"} NO MORE HOSTS LEFT ************************************************************* to retry, use: --limit @snmp_facts-playbook.retry PLAY RECAP ********************************************************************* 10.223.53.3 : ok=0 changed=0 unreachable=0 failed=1 -- 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/2016101619063954714264%40foxmail.com. For more options, visit https://groups.google.com/d/optout.