fixed issues with lookup url docs

This commit is contained in:
Brian Coca 2017-11-13 13:43:19 -05:00
parent 99d4f5bab4
commit b70e48a54d

View file

@ -6,10 +6,12 @@ __metaclass__ = type
DOCUMENTATION = """ DOCUMENTATION = """
lookup: url lookup: url
author: Brian Coca <bcoca@ansible.com> author: Brian Coca (@bcoca)
version_added: "1.9" version_added: "1.9"
short_description: return contents from URL short_description: return contents from URL
description: description:
- Returns the content of the URL requested to be used as data in play.
options:
_terms: _terms:
description: urls to query description: urls to query
validate_certs: validate_certs:
@ -29,8 +31,10 @@ DOCUMENTATION = """
EXAMPLES = """ EXAMPLES = """
- name: url lookup splits lines by default - name: url lookup splits lines by default
debug: msg="{{item}}" debug: msg="{{item}}"
with_url: loop: "{{ lookup('url', 'https://github.com/gremlin.keys', wantlist=True) }}"
- 'https://github.com/gremlin.keys'
- name: display ip ranges
debug: msg="{{ lookup('url', 'https://ip-ranges.amazonaws.com/ip-ranges.json', splitlines=False) }}"
""" """
RETURN = """ RETURN = """