Python Forum
How to gather information from remote host using ansible module in python
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to gather information from remote host using ansible module in python
#1
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 ?
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Python automation: Sending clicks/keys to VMware virtual machine from host olips784 0 314 May-18-2025, 06:28 PM
Last Post: olips784
  Triggering a ps1 script in remote windows server via http python request jasveerjassi 1 1,139 Jan-26-2024, 07:02 PM
Last Post: deanhystad
  i tried to install python for the first time today and pretty certain im being remote brianlj 2 1,793 Oct-03-2023, 11:15 AM
Last Post: snippsat
Question Need help for a python script to extract information from a list of files lephunghien 6 2,777 Jun-12-2023, 05:40 PM
Last Post: snippsat
  PsInfo from remote computer in python susja 3 3,373 Oct-10-2022, 08:39 AM
Last Post: DeaD_EyE
  where to host my python script tomtom 1 1,897 Feb-09-2022, 06:45 AM
Last Post: ndc85430
Question How to gather specific second-level items from a list chatguy 2 2,416 Dec-17-2021, 05:05 PM
Last Post: chatguy
  Problem executing a script on a remote host tester_V 3 4,015 Sep-26-2021, 04:25 AM
Last Post: tester_V
  Failing to connect to a host with WMI tester_V 6 6,403 Aug-10-2021, 06:25 PM
Last Post: tester_V
  Logstash - sending Logstash messages to another host in case of Failover in python Suriya 0 2,270 Jul-27-2021, 02:02 PM
Last Post: Suriya

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020