�
�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
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 stableinterfacet statust coret 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` sv t d t d t d d d d � � d t � } | j d d k rO t d � � n t d
| j d � } | j | � d S( Nt
argument_spect datat typet strt defaultt pongt supports_check_modet crasht boomt ping( R t dictt Truet paramst Exceptiont exit_json( t modulet result( ( s? /usr/lib/python2.7/site-packages/ansible/modules/system/ping.pyt mainB s t __main__N( t
__future__R R R R t
__metaclass__t ANSIBLE_METADATAt
DOCUMENTATIONt EXAMPLESt RETURNt ansible.module_utils.basicR R t __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]