??????????????
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 173
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 174
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 175
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 176
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 177
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 178
σ
ΰUdac @` sΙ d d l m Z m Z m Z e Z d Z d Z d Z d d l m
Z
d d l Z d d l m
Z
d d l m Z d d l m Z m Z d d
l m Z d d l m Z e Z d e f d
YZ d S( i ( t absolute_importt divisiont print_functions
lookup: template
author: Michael DeHaan
version_added: "0.9"
short_description: retrieve contents of file after templating with Jinja2
description:
- Returns a list of strings; for each template in the list of templates you pass in, returns a string containing the results of processing that template.
options:
_terms:
description: list of files to template
convert_data:
type: bool
description: whether to convert YAML into data. If False, strings that are YAML will be left untouched.
variable_start_string:
description: The string marking the beginning of a print statement.
default: '{{'
version_added: '2.8'
type: str
variable_end_string:
description: The string marking the end of a print statement.
default: '}}'
version_added: '2.8'
type: str
s+
- name: show templating results
debug:
msg: "{{ lookup('template', './some_template.j2') }}"
- name: show templating results with different variable start and end string
debug:
msg: "{{ lookup('template', './some_template.j2', variable_start_string='[%', variable_end_string='%]') }}"
s8
_raw:
description: file(s) content after templating
( t deepcopyN( t AnsibleError( t
LookupBase( t to_bytest to_text( t generate_ansible_template_vars( t Displayt LookupModulec B` s e Z d Z RS( c K` s) | j d t } | j d i } g } | j d d } | j d d } | j j } xΌ| D]΄}
t j d |
| j | d |
} t j d | | r| j j
| \ } }
t | d d } | j d
g } | r/g } x7 | D]/ } | j t
j j | d | j | qσ W| } n | j d t
j j | | | j j j _ | d k r{| | j j _ n | d k r| | j j _ n t | } | j t | | j | | | j _ | j j | d t d | d
t } | j | qa t d |
qa W| | j _ | S( Nt convert_datat
template_varst variable_start_stringt variable_end_strings File lookup term: %st templatess File lookup using %s as filet errorst surrogate_or_strictt ansible_search_pathi t preserve_trailing_newlinest escape_backslashess6 the template file %s could not be found for the lookup( t gett Truet Nonet _templart available_variablest displayt debugt find_file_in_search_patht vvvvt _loadert _get_file_contentsR t appendt ost patht joint insertt dirnamet environmentt loadert
searchpathR
R R t updateR t templatet FalseR ( t selft termst variablest kwargst convert_data_pt lookup_template_varst retR
R t old_varst termt
lookupfilet b_template_datat show_datat
template_dataR( t
newsearchpatht pt varst res( ( sC /usr/lib/python2.7/site-packages/ansible/plugins/lookup/template.pyt run> sH
( t __name__t
__module__R= ( ( ( sC /usr/lib/python2.7/site-packages/ansible/plugins/lookup/template.pyR
<