Class: Ansible::Ruby::Modules::Template
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Template
- Defined in:
- lib/ansible/ruby/modules/generated/core/files/template.rb
Instance Method Summary collapse
-
#backup ⇒ :yes, ...
Create a backup file including the timestamp information so you can get the original file back if you somehow clobbered it incorrectly.
-
#dest ⇒ String
Location to render the template to on the remote machine.
-
#force ⇒ :yes, ...
The default is C(yes), which will replace the remote file when contents are different than the source.
-
#src ⇒ String
Path of a Jinja2 formatted template on the Ansible controller.
Methods inherited from Base
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.
18 |
# File 'lib/ansible/ruby/modules/generated/core/files/template.rb', line 18 attribute :backup |
#dest ⇒ String
Returns 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.
22 |
# File 'lib/ansible/ruby/modules/generated/core/files/template.rb', line 22 attribute :force |
#src ⇒ String
Returns 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 |