??????????????
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
m Z d d l 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: file
author: Daniel Hokka Zakrisson
version_added: "0.9"
short_description: read file contents
description:
- This lookup returns the contents from a file on the Ansible controller's file system.
options:
_terms:
description: path(s) of files to read
required: True
rstrip:
description: whether or not to remove whitespace from the ending of the looked-up file
type: bool
required: False
default: True
lstrip:
description: whether or not to remove whitespace from the beginning of the looked-up file
type: bool
required: False
default: False
notes:
- if read in variable context, the file can be interpreted as YAML if the content is valid to the parser.
- this lookup does not understand 'globing', use the fileglob lookup instead.
s
- debug: msg="the value of foo.txt is {{lookup('file', '/etc/foo.txt') }}"
- name: display multiple file contents
debug: var=item
with_file:
- "/path/to/foo.txt"
- "bar.txt" # will be looked in files/ dir relative to play or in role
- "/path/to/biz.txt"
s5
_raw:
description:
- content of file(s)
( t AnsibleErrort AnsibleParserError( t
LookupBase( t to_text( t Displayt LookupModulec B` s e Z d d Z RS( c
K` s g } x | D] } t j d | | j | d | } t j d | y | r | j j | \ } } t | d d } | j d t r | j } n | j d t
r | j } n | j | n t
Wq
t
k
r t d | q
Xq
W| S( Ns File lookup term: %st filesu File lookup using %s as filet errorst surrogate_or_strictt lstript rstrips# could not locate file in lookup: %s( t displayt debugt find_file_in_search_patht vvvvt _loadert _get_file_contentsR t gett FalseR t TrueR
t appendR R (
t selft termst variablest kwargst rett termt
lookupfilet
b_contentst show_datat contents( ( s? /usr/lib/python2.7/site-packages/ansible/plugins/lookup/file.pyt run<