Python Forum

Full Version: How to gather information from remote host using ansible module in python
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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 ?