Class: Ansible::Ruby::Modules::Template

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/core/files/template.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

#backup:yes, ...

Returns Create a backup file including the timestamp information so you can get the original file back if you somehow clobbered it incorrectly.

Returns:

  • (:yes, :no, nil)

    Create a backup file including the timestamp information so you can get the original file back if you somehow clobbered it incorrectly.



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

attribute :backup

#destString

Returns Location to render the template to on the remote machine.

Returns:

  • (String)

    Location to render the template to on the remote machine.



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

attribute :dest

#force:yes, ...

Returns the default is C(yes), which will replace the remote file when contents are different than the source. If C(no), the file will only be transferred if the destination does not exist.

Returns:

  • (:yes, :no, nil)

    the default is C(yes), which will replace the remote file when contents are different than the source. If C(no), the file will only be transferred if the destination does not exist.



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

attribute :force

#srcString

Returns Path of a Jinja2 formatted template on the Ansible controller. This can be a relative or absolute path.

Returns:

  • (String)

    Path of a Jinja2 formatted template on the Ansible controller. This can be a relative or absolute path.



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

attribute :src