Class: Ansible::Ruby::Modules::Shell

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

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

Constructor Details

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

Instance Method Details

#chdirString?

Returns cd into this directory before running the command.

Returns:

  • (String, nil)

    cd into this directory before running the command



21
# File 'lib/ansible/ruby/modules/generated/core/commands/shell.rb', line 21

attribute :chdir

#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.



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

attribute :creates

#executableString?

Returns change the shell used to execute the command. Should be an absolute path to the executable.

Returns:

  • (String, nil)

    change the shell used to execute the command. Should be an absolute path to the executable.



25
# File 'lib/ansible/ruby/modules/generated/core/commands/shell.rb', line 25

attribute :executable

#free_formObject

Returns The shell module takes a free form command to run, as a string. There’s not an actual option named “free form”. See the examples!.

Returns:

  • (Object)

    The shell module takes a free form command to run, as a string. There’s not an actual option named “free form”. See the examples!



10
# File 'lib/ansible/ruby/modules/generated/core/commands/shell.rb', line 10

attribute :free_form

#removesObject?

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

Returns:

  • (Object, nil)

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



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

attribute :removes

#warnBoolean?

Returns if command warnings are on in ansible.cfg, do not warn about this particular line if set to no/false.

Returns:

  • (Boolean, nil)

    if command warnings are on in ansible.cfg, do not warn about this particular line if set to no/false.



29
# File 'lib/ansible/ruby/modules/generated/core/commands/shell.rb', line 29

attribute :warn