Class: Ansible::Ruby::Modules::Script
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Script
- 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
-
#creates ⇒ String?
A filename, when it already exists, this step will B(not) be run.
-
#free_form ⇒ Object
Path to the local script file followed by optional arguments.
-
#removes ⇒ String?
A filename, when it does not exist, this step will B(not) be run.
Methods included from FreeForm
Methods inherited from Base
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
#creates ⇒ String?
Returns 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_form ⇒ Object
Returns 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 |
#removes ⇒ String?
Returns 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 |