Class: Ansible::Ruby::Modules::Unarchive

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/core/files/unarchive.rb

Instance Method Summary collapse

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

#copy:yes, ...

Returns If true, the file is copied from local ‘master’ to the target machine, otherwise, the plugin will look for src archive at the target machine.

Returns:

  • (:yes, :no, nil)

    If true, the file is copied from local ‘master’ to the target machine, otherwise, the plugin will look for src archive at the target machine.



18
# File 'lib/ansible/ruby/modules/generated/core/files/unarchive.rb', line 18

attribute :copy

#createsObject?

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

Returns:

  • (Object, nil)

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



22
# File 'lib/ansible/ruby/modules/generated/core/files/unarchive.rb', line 22

attribute :creates

#destString

Returns Remote absolute path where the archive should be unpacked.

Returns:

  • (String)

    Remote absolute path where the archive should be unpacked



14
# File 'lib/ansible/ruby/modules/generated/core/files/unarchive.rb', line 14

attribute :dest

#excludeObject?

Returns List the directory and file entries that you would like to exclude from the unarchive action.

Returns:

  • (Object, nil)

    List the directory and file entries that you would like to exclude from the unarchive action.



29
# File 'lib/ansible/ruby/modules/generated/core/files/unarchive.rb', line 29

attribute :exclude

#extra_optsObject?

Returns Specify additional options by passing in an array.

Returns:

  • (Object, nil)

    Specify additional options by passing in an array.



36
# File 'lib/ansible/ruby/modules/generated/core/files/unarchive.rb', line 36

attribute :extra_opts

#keep_newerBoolean?

Returns Do not replace existing files that are newer than files from the archive.

Returns:

  • (Boolean, nil)

    Do not replace existing files that are newer than files from the archive.



32
# File 'lib/ansible/ruby/modules/generated/core/files/unarchive.rb', line 32

attribute :keep_newer

#list_files:yes, ...

Returns If set to True, return the list of files that are contained in the tarball.

Returns:

  • (:yes, :no, nil)

    If set to True, return the list of files that are contained in the tarball.



25
# File 'lib/ansible/ruby/modules/generated/core/files/unarchive.rb', line 25

attribute :list_files

#srcString

Returns If copy=yes (default), local path to archive file to copy to the target server; can be absolute or relative. If copy=no, path on the target server to existing archive file to unpack.,If copy=no and src contains ://, the remote machine will download the file from the url first. (version_added 2.0).

Returns:

  • (String)

    If copy=yes (default), local path to archive file to copy to the target server; can be absolute or relative. If copy=no, path on the target server to existing archive file to unpack.,If copy=no and src contains ://, the remote machine will download the file from the url first. (version_added 2.0)



10
# File 'lib/ansible/ruby/modules/generated/core/files/unarchive.rb', line 10

attribute :src