??????????????
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 m Z m
Z
d d l m Z m Z d d l m Z 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: url
author: Brian Coca (@bcoca)
version_added: "1.9"
short_description: return contents from URL
description:
- Returns the content of the URL requested to be used as data in play.
options:
_terms:
description: urls to query
validate_certs:
description: Flag to control SSL certificate validation
type: boolean
default: True
split_lines:
description: Flag to control if content is returned as a list of lines or as a single text blob
type: boolean
default: True
use_proxy:
description: Flag to control if the lookup will observe HTTP proxy environment variables when present.
type: boolean
default: True
username:
description: Username to use for HTTP authentication.
type: string
version_added: "2.8"
password:
description: Password to use for HTTP authentication.
type: string
version_added: "2.8"
headers:
description: HTTP request headers
type: dictionary
default: {}
version_added: "2.9"
sV
- name: url lookup splits lines by default
debug: msg="{{item}}"
loop: "{{ lookup('url', 'https://github.com/gremlin.keys', wantlist=True) }}"
- name: display ip ranges
debug: msg="{{ lookup('url', 'https://ip-ranges.amazonaws.com/ip-ranges.json', split_lines=False) }}"
- name: url lookup using authentication
debug: msg="{{ lookup('url', 'https://some.private.site.com/file.txt', username='bob', password='hunter2') }}"
- name: url lookup using headers
debug: msg="{{ lookup('url', 'https://some.private.site.com/api/service', headers={'header1':'value1', 'header2':'value2'} ) }}"
sF
_list:
description: list of list of lines or content of url(s)
( t AnsibleError( t HTTPErrort URLError( t to_textt to_native( t open_urlt ConnectionErrort SSLValidationError( t
LookupBase( t Displayt LookupModulec B` s e Z d d Z RS( c K` sฎ | j d | g } x| D]} t j d | y[ t | d | j d d | j d d | j d d | j d d | j d } Wnน t k
rภ } t d
| t | f n t k
r๎ } t d | t | f n] t k
r} t d | t | f n/ t
k
rJ} t d
| t | f n X| j d rxI | j j D] } | j
t | qmWq | j
t | j q W| S( Nt directs url lookup connecting to %st validate_certst use_proxyt url_usernamet usernamet url_passwordt passwordt headerss Received HTTP error for %s : %ss Failed lookup url for %s : %ss4 Error validating the server's certificate for %s: %ss Error connecting to %s: %st split_lines( t set_optionst displayt vvvvR t
get_optionR R R R R
R t readt
splitlinest appendR ( t selft termst variablest kwargst rett termt responset et line( ( s> /usr/lib/python2.7/site-packages/ansible/plugins/lookup/url.pyt runL s.
N( t __name__t
__module__t NoneR' ( ( ( s> /usr/lib/python2.7/site-packages/ansible/plugins/lookup/url.pyR
J s N( t
__future__R R R t typet
__metaclass__t
DOCUMENTATIONt EXAMPLESt RETURNt ansible.errorsR t+ ansible.module_utils.six.moves.urllib.errorR R t ansible.module_utils._textR R t ansible.module_utils.urlsR R R
t ansible.plugins.lookupR t ansible.utils.displayR R R
( ( ( s> /usr/lib/python2.7/site-packages/ansible/plugins/lookup/url.pyt s %