fixed issues with lookup url docs
This commit is contained in:
parent
99d4f5bab4
commit
b70e48a54d
1 changed files with 25 additions and 21 deletions
|
@ -5,32 +5,36 @@ from __future__ import (absolute_import, division, print_function)
|
||||||
__metaclass__ = type
|
__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:
|
||||||
_terms:
|
- Returns the content of the URL requested to be used as data in play.
|
||||||
description: urls to query
|
options:
|
||||||
validate_certs:
|
_terms:
|
||||||
description: Flag to control SSL certificate validation
|
description: urls to query
|
||||||
type: boolean
|
validate_certs:
|
||||||
default: True
|
description: Flag to control SSL certificate validation
|
||||||
split_lines:
|
type: boolean
|
||||||
description: Flag to control if content is returned as a list of lines or as a single text blob
|
default: True
|
||||||
type: boolean
|
split_lines:
|
||||||
default: True
|
description: Flag to control if content is returned as a list of lines or as a single text blob
|
||||||
use_proxy:
|
type: boolean
|
||||||
description: Flag to control if the lookup will observe HTTP proxy environment variables when present.
|
default: True
|
||||||
type: boolean
|
use_proxy:
|
||||||
default: True
|
description: Flag to control if the lookup will observe HTTP proxy environment variables when present.
|
||||||
|
type: boolean
|
||||||
|
default: True
|
||||||
"""
|
"""
|
||||||
|
|
||||||
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 = """
|
||||||
|
|
Loading…
Reference in a new issue