Anons79 Mini Shell

Directory : /lib/python2.7/site-packages/ansible/modules/system/
Upload File :
Current File : //lib/python2.7/site-packages/ansible/modules/system/ping.pyo

�
�Udac@`s�ddlmZmZmZeZidd6dgd6dd6ZdZd	Zd
Z	ddl
mZd�Ze
d
kr�e�ndS(i(tabsolute_importtdivisiontprint_functions1.1tmetadata_versiontstableinterfacetstatustcoretsupported_bys�
---
module: ping
version_added: historical
short_description: Try to connect to host, verify a usable python and return C(pong) on success
description:
   - A trivial test module, this module always returns C(pong) on successful
     contact. It does not make sense in playbooks, but it is useful from
     C(/usr/bin/ansible) to verify the ability to login and that a usable Python is configured.
   - This is NOT ICMP ping, this is just a trivial test module that requires Python on the remote-node.
   - For Windows targets, use the M(win_ping) module instead.
   - For Network targets, use the M(net_ping) module instead.
options:
  data:
    description:
      - Data to return for the C(ping) return value.
      - If this parameter is set to C(crash), the module will cause an exception.
    type: str
    default: pong
seealso:
- module: net_ping
- module: win_ping
author:
    - Ansible Core Team
    - Michael DeHaan
s�
# Test we can logon to 'webservers' and execute python with json lib.
# ansible webservers -m ping

# Example from an Ansible Playbook
- ping:

# Induce an exception to see what happens
- ping:
    data: crash
st
ping:
    description: value provided with the data parameter
    returned: success
    type: str
    sample: pong
(t
AnsibleModulec	C`svtdtdtdddd��dt�}|jddkrOtd	��ntd
|jd�}|j|�dS(Nt
argument_spectdatattypetstrtdefaulttpongtsupports_check_modetcrashtboomtping(RtdicttTruetparamst	Exceptiont	exit_json(tmoduletresult((s?/usr/lib/python2.7/site-packages/ansible/modules/system/ping.pytmainBs	t__main__N(t
__future__RRRRt
__metaclass__tANSIBLE_METADATAt
DOCUMENTATIONtEXAMPLEStRETURNtansible.module_utils.basicRRt__name__(((s?/usr/lib/python2.7/site-packages/ansible/modules/system/ping.pyt<module>s


	

Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]