�
�Udac @` s� d d l m Z m Z m Z e Z i d d 6d g d 6d d 6Z d Z d Z d d
l Z d d l
m Z d � Z e
d
k r� e � n d
S( i ( t absolute_importt divisiont print_functions 1.1t metadata_versiont previewt statust communityt supported_bys�
---
module: ohai
short_description: Returns inventory data from I(Ohai)
description:
- Similar to the M(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).
version_added: "0.6"
options: {}
notes: []
requirements: [ "ohai" ]
author:
- "Ansible Core Team"
- "Michael DeHaan (@mpdehaan)"
s|
# Retrieve (ohai) data from all Web servers and store in one-file per host
ansible webservers -m ohai --tree=/tmp/ohaidata
N( t
AnsibleModulec C` sV t d t � � } d d g } | j | d t �\ } } } | j t j | � � d S( Nt
argument_specs /usr/bin/envt ohait check_rc( R t dictt run_commandt Truet exit_jsont jsont loads( t modulet cmdt rct outt err( ( s? /usr/lib/python2.7/site-packages/ansible/modules/system/ohai.pyt main* s
t __main__( t
__future__R R R t typet
__metaclass__t ANSIBLE_METADATAt
DOCUMENTATIONt EXAMPLESR t ansible.module_utils.basicR R t __name__( ( ( s? /usr/lib/python2.7/site-packages/ansible/modules/system/ohai.pyt <module> s
Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]