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

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

Overview

The C(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. This module is also supported for Windows targets.

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, fix_inclusion, #initialize, remove_existing_validations, #to_h, validates

Constructor Details

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

Instance Method Details

#chdirObject?

Returns Change into this directory on the remote node before running the script.

Returns:

  • (Object, nil)

    Change into this directory on the remote node before running the script.



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

attribute :chdir

#createsString?

Returns A filename on the remote node, when it already exists, this step will B(not) be run.

Returns:

  • (String, nil)

    A filename on the remote node, when it already exists, this step will B(not) be run.



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

attribute :creates

#executableString?

Returns Name or path of a executable to invoke the script with.

Returns:

  • (String, nil)

    Name or path of a executable to invoke the script with.



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

attribute :executable

#free_formObject

Returns Path to the local script file followed by optional arguments.,There is no parameter actually named ‘free form’, see the examples!.

Returns:

  • (Object)

    Path to the local script file followed by optional arguments.,There is no parameter actually named ‘free form’, see the examples!



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

attribute :free_form

#removesString?

Returns A filename on the remote node, when it does not exist, this step will B(not) be run.

Returns:

  • (String, nil)

    A filename on the remote node, when it does not exist, this step will B(not) be run.



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

attribute :removes