-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bad66c8
commit e5b1ff8
Showing
3 changed files
with
295 additions
and
1 deletion.
There are no files selected for viewing
283 changes: 283 additions & 0 deletions
283
tests/functional/baseline-plugin/ns2.col.foo_lookup.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,283 @@ | ||
.. Document meta | ||
:orphan: | ||
|
||
.. |antsibull-internal-nbsp| unicode:: 0xA0 | ||
:trim: | ||
|
||
.. meta:: | ||
:antsibull-docs: <ANTSIBULL_DOCS_VERSION> | ||
|
||
.. Anchors | ||
.. _ansible_collections.ns2.col.foo_lookup: | ||
|
||
.. Anchors: short name for ansible.builtin | ||
.. Title | ||
ns2.col.foo lookup -- Look up some foo :ansopt:`ns2.col.foo#lookup:bar` | ||
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ | ||
|
||
.. Collection note | ||
.. note:: | ||
This lookup plugin is part of the `ns2.col collection <https://galaxy.ansible.com/ui/repo/published/ns2/col/>`_. | ||
|
||
It is not included in ``ansible-core``. | ||
To check whether it is installed, run :code:`ansible-galaxy collection list`. | ||
|
||
To install it, use: :code:`ansible-galaxy collection install ns2.col`. | ||
|
||
To use it in a playbook, specify: :code:`ns2.col.foo`. | ||
|
||
.. version_added | ||
.. rst-class:: ansible-version-added | ||
|
||
New in ns2.col 1.0.0 | ||
|
||
.. contents:: | ||
:local: | ||
:depth: 1 | ||
|
||
.. Deprecated | ||
Synopsis | ||
-------- | ||
|
||
.. Description | ||
- This looks up some foo. | ||
- Whatever that is. | ||
|
||
|
||
.. Aliases | ||
.. Requirements | ||
.. Terms | ||
Terms | ||
----- | ||
|
||
.. tabularcolumns:: \X{1}{3}\X{2}{3} | ||
|
||
.. list-table:: | ||
:width: 100% | ||
:widths: auto | ||
:header-rows: 1 | ||
:class: longtable ansible-option-table | ||
|
||
* - Parameter | ||
- Comments | ||
|
||
* - .. raw:: html | ||
|
||
<div class="ansible-option-cell"> | ||
<div class="ansibleOptionAnchor" id="parameter-_terms"></div> | ||
|
||
.. _ansible_collections.ns2.col.foo_lookup__parameter-_terms: | ||
|
||
.. rst-class:: ansible-option-title | ||
|
||
**Terms** | ||
|
||
.. raw:: html | ||
|
||
<a class="ansibleOptionLink" href="#parameter-_terms" title="Permalink to this option"></a> | ||
|
||
.. ansible-option-type-line:: | ||
|
||
:ansible-option-type:`list` / :ansible-option-elements:`elements=string` / :ansible-option-required:`required` | ||
|
||
|
||
|
||
|
||
.. raw:: html | ||
|
||
</div> | ||
|
||
- .. raw:: html | ||
|
||
<div class="ansible-option-cell"> | ||
|
||
The stuff to look up. | ||
|
||
|
||
.. raw:: html | ||
|
||
</div> | ||
|
||
|
||
|
||
|
||
|
||
.. Options | ||
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('ns2.col.foo', key1=value1, key2=value2, ...)`` and ``query('ns2.col.foo', key1=value1, key2=value2, ...)`` | ||
|
||
.. tabularcolumns:: \X{1}{3}\X{2}{3} | ||
|
||
.. list-table:: | ||
:width: 100% | ||
:widths: auto | ||
:header-rows: 1 | ||
:class: longtable ansible-option-table | ||
|
||
* - Parameter | ||
- Comments | ||
|
||
* - .. raw:: html | ||
|
||
<div class="ansible-option-cell"> | ||
<div class="ansibleOptionAnchor" id="parameter-bar"></div> | ||
|
||
.. _ansible_collections.ns2.col.foo_lookup__parameter-bar: | ||
|
||
.. rst-class:: ansible-option-title | ||
|
||
**bar** | ||
|
||
.. raw:: html | ||
|
||
<a class="ansibleOptionLink" href="#parameter-bar" title="Permalink to this option"></a> | ||
|
||
.. ansible-option-type-line:: | ||
|
||
:ansible-option-type:`string` | ||
|
||
|
||
|
||
|
||
.. raw:: html | ||
|
||
</div> | ||
|
||
- .. raw:: html | ||
|
||
<div class="ansible-option-cell"> | ||
|
||
Foo bar. | ||
|
||
|
||
.. raw:: html | ||
|
||
</div> | ||
|
||
|
||
.. Attributes | ||
.. Notes | ||
Notes | ||
----- | ||
|
||
.. note:: | ||
- When keyword and positional parameters are used together, positional parameters must be listed before keyword parameters: | ||
``lookup('ns2.col.foo', term1, term2, key1=value1, key2=value2)`` and ``query('ns2.col.foo', term1, term2, key1=value1, key2=value2)`` | ||
|
||
.. Seealso | ||
.. Examples | ||
Examples | ||
-------- | ||
|
||
.. code-block:: yaml+jinja | ||
|
||
- name: Look up bar | ||
ansible.builtin.debug: | ||
msg: "{{ lookup('ns2.col.foo', 'bar') }}" | ||
|
||
|
||
|
||
.. Facts | ||
.. Return values | ||
Return Value | ||
------------ | ||
|
||
.. tabularcolumns:: \X{1}{3}\X{2}{3} | ||
|
||
.. list-table:: | ||
:width: 100% | ||
:widths: auto | ||
:header-rows: 1 | ||
:class: longtable ansible-option-table | ||
|
||
* - Key | ||
- Description | ||
|
||
* - .. raw:: html | ||
|
||
<div class="ansible-option-cell"> | ||
<div class="ansibleOptionAnchor" id="return-_raw"></div> | ||
|
||
.. _ansible_collections.ns2.col.foo_lookup__return-_raw: | ||
|
||
.. rst-class:: ansible-option-title | ||
|
||
**Return value** | ||
|
||
.. raw:: html | ||
|
||
<a class="ansibleOptionLink" href="#return-_raw" title="Permalink to this return value"></a> | ||
|
||
.. ansible-option-type-line:: | ||
|
||
:ansible-option-type:`list` / :ansible-option-elements:`elements=string` | ||
|
||
.. raw:: html | ||
|
||
</div> | ||
|
||
- .. raw:: html | ||
|
||
<div class="ansible-option-cell"> | ||
|
||
The resulting stuff. | ||
|
||
|
||
.. rst-class:: ansible-option-line | ||
|
||
:ansible-option-returned-bold:`Returned:` success | ||
|
||
|
||
.. raw:: html | ||
|
||
</div> | ||
|
||
|
||
|
||
.. Status (Presently only deprecated) | ||
.. Authors | ||
Authors | ||
~~~~~~~ | ||
|
||
- Felix Fontein (@felixfontein) | ||
|
||
|
||
.. hint:: | ||
Configuration entries for each entry type have a low to high priority order. For example, a variable that is lower in the list will override a variable that is higher up. | ||
|
||
.. Extra links | ||
.. Parsing errors |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters