Class: Ansible::Ruby::Modules::Fetch

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

Instance Method Summary collapse

Methods inherited from Base

#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

#destString

Returns A directory to save the file into. For example, if the I(dest) directory is C(/backup) a I(src) file named C(/etc/profile) on host C(host.example.com), would be saved into C(/backup/host.example.com/etc/profile).

Returns:

  • (String)

    A directory to save the file into. For example, if the I(dest) directory is C(/backup) a I(src) file named C(/etc/profile) on host C(host.example.com), would be saved into C(/backup/host.example.com/etc/profile)



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

attribute :dest

#fail_on_missing:yes, ...

Returns Makes it fails when the source file is missing.

Returns:

  • (:yes, :no, nil)

    Makes it fails when the source file is missing.



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

attribute :fail_on_missing

#flatString?

Returns Allows you to override the default behavior of appending hostname/path/to/file to the destination. If dest ends with ‘/’, it will use the basename of the source file, similar to the copy module. Obviously this is only handy if the filenames are unique.

Returns:

  • (String, nil)

    Allows you to override the default behavior of appending hostname/path/to/file to the destination. If dest ends with ‘/’, it will use the basename of the source file, similar to the copy module. Obviously this is only handy if the filenames are unique.



26
# File 'lib/ansible/ruby/modules/generated/core/files/fetch.rb', line 26

attribute :flat

#srcString

Returns The file on the remote system to fetch. This I(must) be a file, not a directory. Recursive fetching may be supported in a later release.

Returns:

  • (String)

    The file on the remote system to fetch. This I(must) be a file, not a directory. Recursive fetching may be supported in a later release.



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

attribute :src

#validate_checksum:yes, ...

Returns Verify that the source and destination checksums match after the files are fetched.

Returns:

  • (:yes, :no, nil)

    Verify that the source and destination checksums match after the files are fetched.



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

attribute :validate_checksum