Class: Ansible::Ruby::Modules::Archive

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

Overview

Packs an archive. It is the opposite of M(unarchive). By default, it assumes the compression source exists on the target. It will not copy the source file from the local system to the target before archiving. Source files can be deleted after archival by specifying I(remove=True).

Instance Method Summary collapse

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

#destString?



20
# File 'lib/ansible/ruby/modules/generated/files/archive.rb', line 20

attribute :dest

#exclude_pathArray<String>, ...



24
# File 'lib/ansible/ruby/modules/generated/files/archive.rb', line 24

attribute :exclude_path

#format:bz2, ...



16
# File 'lib/ansible/ruby/modules/generated/files/archive.rb', line 16

attribute :format

#pathArray<String>, String



12
# File 'lib/ansible/ruby/modules/generated/files/archive.rb', line 12

attribute :path

#remove:yes, ...



28
# File 'lib/ansible/ruby/modules/generated/files/archive.rb', line 28

attribute :remove