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

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

Overview

Templates are processed by the Jinja2 templating language (U(jinja.pocoo.org/docs/)) - documentation on the template formatting can be found in the Template Designer Documentation (U(jinja.pocoo.org/docs/templates/)). Six additional variables can be used in templates: C(ansible_managed) (configurable via the C(defaults) section of C(ansible.cfg)) contains a string which can be used to describe the template name, host, modification time of the template file and the owner uid. C(template_host) contains the node name of the template’s machine. C(template_uid) is the numeric user id of the owner. C(template_path) is the path of the template. C(template_fullpath) is the absolute path of the template. C(template_run_date) is the date that the template was rendered.

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, ...



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

attribute :backup

#block_end_stringString?



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

attribute :block_end_string

#block_start_stringString?



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

attribute :block_start_string

#destString



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

attribute :dest

#follow:yes, ...



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

attribute :follow

#force:yes, ...



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

attribute :force

#lstrip_blocks:yes, ...



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

attribute :lstrip_blocks

#modeInteger, ...



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

attribute :mode

#newline_sequence:"\\n", ...



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

attribute :newline_sequence

#output_encodingString?



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

attribute :output_encoding

#srcString



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

attribute :src

#trim_blocks:yes, ...



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

attribute :trim_blocks

#variable_end_stringString?



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

attribute :variable_end_string

#variable_start_stringString?



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

attribute :variable_start_string