Python Forum
How to gather information from remote host using ansible module in python - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: How to gather information from remote host using ansible module in python (/thread-19917.html)



How to gather information from remote host using ansible module in python - amritjsr - Jul-20-2019

I am trying to gather information like hardware and software detail from remote host using ansible module in Python Script. But unable to figureout. I am trying to use Ansible's Python API. like below ... from ansible.playbook import PlayBook from ansible.inventory import Inventory from ansible import callbacks from ansible import utils but unable to figureout out gather details from remote host and save it to a file ?