
    VhE                     X    d dl mZmZmZ eZdZdZd dlZd dl	m
Z
 d Zedk(  r e        yy)    )absolute_importdivisionprint_functionaE  
module: ohai
short_description: Returns inventory data from I(Ohai)
description:
  - Similar to the M(community.general.facter) module, this runs the I(Ohai) discovery program (U(https://docs.chef.io/ohai.html))
    on the remote host and returns JSON inventory data. I(Ohai) data is a bit more verbose and nested than I(facter).
extends_documentation_fragment:
  - community.general.attributes
attributes:
  check_mode:
    support: none
  diff_mode:
    support: none
options: {}
notes: []
requirements: ["ohai"]
author:
  - "Ansible Core Team"
  - "Michael DeHaan (@mpdehaan)"
z5
ansible webservers -m ohai --tree=/tmp/ohaidata
...
N)AnsibleModulec                      t        t                     } ddg}| j                  |d      \  }}} | j                  di t	        j
                  |       y )N)argument_specz/usr/bin/envohaiT)check_rc )r   dictrun_command	exit_jsonjsonloads)modulecmdrcouterrs        j/home/dcms/DCMS/lib/python3.12/site-packages/ansible_collections/community/general/plugins/modules/ohai.pymainr   *   sS    fF 6
"C%%cD%9LBSF'tzz#'    __main__)
__future__r   r   r   type__metaclass__DOCUMENTATIONEXAMPLESr   ansible.module_utils.basicr   r   __name__r   r   r   <module>r!      sB    A @*  4( zF r   