community.internal_test_tools._open_url_test_lookup lookup – Test plugin for the open_url test framework (DO NOT USE THIS!)
Note
This lookup plugin is part of the community.internal_test_tools collection (version 0.12.0).
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install community.internal_test_tools
.
To use it in a playbook, specify: community.internal_test_tools._open_url_test_lookup
.
New in community.internal_test_tools 0.3.0
Synopsis
DO NOT USE THIS!
Terms
Parameter |
Comments |
---|---|
URLs to query. |
Keyword parameters
This describes keyword parameters of the lookup. These are the values key1=value1
, key2=value2
and so on in the following
examples: lookup('community.internal_test_tools._open_url_test_lookup', key1=value1, key2=value2, ...)
and query('community.internal_test_tools._open_url_test_lookup', key1=value1, key2=value2, ...)
Parameter |
Comments |
---|---|
Data to send (Base64 encoded). |
|
Force passing Choices:
|
|
HTTP headers. |
|
HTTP method. Default: |
|
Timeout in seconds |
|
The password for use with HTTP Basic Authentication. |
|
The username for use with HTTP Basic Authentication. |
Notes
Note
When keyword and positional parameters are used together, positional parameters must be listed before keyword parameters:
lookup('community.internal_test_tools._open_url_test_lookup', term1, term2, key1=value1, key2=value2)
andquery('community.internal_test_tools._open_url_test_lookup', term1, term2, key1=value1, key2=value2)
Examples
- name: Do a lookup
ansible.builtin.debug:
msg: "{{ lookup('community.internal_test_tools.open_url_test_lookup', 'https://example.com', method='GET', headers={'foo': 'bar'}) }}"
Return Value
Key |
Description |
---|---|
Results of HTTP calls. Returned: success Sample: |
|
Content (Base64 encoded). Returned: success Sample: |
|
Headers. Returned: success Sample: |
|
HTTP status of request. Returned: success Sample: |