Class: Ansible::Ruby::Modules::Script

Inherits:
Base show all
Includes:
FreeForm
Defined in:
lib/ansible/ruby/modules/generated/core/commands/script.rb,
lib/ansible/ruby/modules/custom/commands/script.rb

Overview

The M(script) module takes the script name followed by a list of space-delimited arguments. The local script at path will be transferred to the remote node and then executed. The given script will be processed through the shell environment on the remote node. This module does not require python on the remote system, much like the M(raw) module.

Instance Method Summary collapse

Methods included from FreeForm

included, #to_h

Methods inherited from Base

#ansible_name, #to_h

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

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

Constructor Details

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

Instance Method Details

#createsString?

Returns a filename, when it already exists, this step will B(not) be run.

Returns:

  • (String, nil)

    a filename, when it already exists, this step will B(not) be run.



18
# File 'lib/ansible/ruby/modules/generated/core/commands/script.rb', line 18

attribute :creates

#free_formObject

Returns path to the local script file followed by optional arguments.

Returns:

  • (Object)

    path to the local script file followed by optional arguments.



14
# File 'lib/ansible/ruby/modules/generated/core/commands/script.rb', line 14

attribute :free_form

#removesString?

Returns a filename, when it does not exist, this step will B(not) be run.

Returns:

  • (String, nil)

    a filename, when it does not exist, this step will B(not) be run.



22
# File 'lib/ansible/ruby/modules/generated/core/commands/script.rb', line 22

attribute :removes