Class: Ansible::Ruby::Modules::Copy

Inherits:
Base show all
Includes:
Helpers::FileAttributes
Defined in:
lib/ansible/ruby/modules/generated/files/copy.rb,
lib/ansible/ruby/modules/custom/files/copy.rb

Overview

The C(copy) module copies a file from the local or remote machine to a location on the remote machine. Use the M(fetch) module to copy files from remote locations to the local box. If you need variable interpolation in copied files, use the M(template) module. For Windows targets, use the M(win_copy) module instead.

Instance Method Summary collapse

Methods included from Helpers::FileAttributes

included

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

#backup:yes, ...



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

attribute :backup

#checksumObject?



52
# File 'lib/ansible/ruby/modules/generated/files/copy.rb', line 52

attribute :checksum

#contentString?



17
# File 'lib/ansible/ruby/modules/generated/files/copy.rb', line 17

attribute :content

#destString



21
# File 'lib/ansible/ruby/modules/generated/files/copy.rb', line 21

attribute :dest

#directory_modeObject?



37
# File 'lib/ansible/ruby/modules/generated/files/copy.rb', line 37

attribute :directory_mode

#follow:yes, ...



44
# File 'lib/ansible/ruby/modules/generated/files/copy.rb', line 44

attribute :follow

#force:yes, ...



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

attribute :force

#local_follow:yes, ...



48
# File 'lib/ansible/ruby/modules/generated/files/copy.rb', line 48

attribute :local_follow

#modeInteger, ...



33
# File 'lib/ansible/ruby/modules/generated/files/copy.rb', line 33

attribute :mode

#remote_src:yes, ...



40
# File 'lib/ansible/ruby/modules/generated/files/copy.rb', line 40

attribute :remote_src

#srcString?



13
# File 'lib/ansible/ruby/modules/generated/files/copy.rb', line 13

attribute :src