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
  Triggering a ps1 script in remote windows server via http python request jasveerjassi 1 365 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 540 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 1,076 Jun-12-2023, 05:40 PM
Last Post: snippsat
  PsInfo from remote computer in python susja 3 2,253 Oct-10-2022, 08:39 AM
Last Post: DeaD_EyE
  where to host my python script tomtom 1 1,259 Feb-09-2022, 06:45 AM
Last Post: ndc85430
Question How to gather specific second-level items from a list chatguy 2 1,545 Dec-17-2021, 05:05 PM
Last Post: chatguy
  Problem executing a script on a remote host tester_V 3 2,446 Sep-26-2021, 04:25 AM
Last Post: tester_V
  Failing to connect to a host with WMI tester_V 6 4,358 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 1,664 Jul-27-2021, 02:02 PM
Last Post: Suriya
  Find all “*.wav” files that created yesterday on linux host with python. pydeev 6 4,759 Jan-07-2020, 06:43 AM
Last Post: pydeev

Forum Jump:

User Panel Messages

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