Class: Ansible::Ruby::Modules::Ping

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/system/ping.rb

Overview

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.

Instance Method Summary collapse

Methods inherited from Base

#ansible_name, #to_h

Methods inherited from Ansible::Ruby::Models::Base

attr_option, attr_options, attribute, fix_inclusion, #initialize, remove_existing_validations, #to_h, validates

Constructor Details

This class inherits a constructor from Ansible::Ruby::Models::Base

Instance Method Details

#dataString?

Returns Data to return for the C(ping) return value.,If this parameter is set to C(crash), the module will cause an exception.

Returns:

  • (String, nil)

    Data to return for the C(ping) return value.,If this parameter is set to C(crash), the module will cause an exception.



15
# File 'lib/ansible/ruby/modules/generated/system/ping.rb', line 15

attribute :data