fixed issues with lookup url docs
This commit is contained in:
parent
99d4f5bab4
commit
b70e48a54d
1 changed files with 25 additions and 21 deletions
|
@ -6,10 +6,12 @@ __metaclass__ = type
|
|||
|
||||
DOCUMENTATION = """
|
||||
lookup: url
|
||||
author: Brian Coca <bcoca@ansible.com>
|
||||
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:
|
||||
|
@ -29,8 +31,10 @@ DOCUMENTATION = """
|
|||
EXAMPLES = """
|
||||
- name: url lookup splits lines by default
|
||||
debug: msg="{{item}}"
|
||||
with_url:
|
||||
- 'https://github.com/gremlin.keys'
|
||||
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', splitlines=False) }}"
|
||||
"""
|
||||
|
||||
RETURN = """
|
||||
|
|
Loading…
Add table
Reference in a new issue