|
| 1 | +.. Document meta |
| 2 | +
|
| 3 | +:orphan: |
| 4 | + |
| 5 | +.. |antsibull-internal-nbsp| unicode:: 0xA0 |
| 6 | + :trim: |
| 7 | + |
| 8 | +.. meta:: |
| 9 | + :antsibull-docs: <ANTSIBULL_DOCS_VERSION> |
| 10 | + |
| 11 | +.. Anchors |
| 12 | +
|
| 13 | +.. _ansible_collections.ns2.col.foo_lookup: |
| 14 | + |
| 15 | +.. Anchors: short name for ansible.builtin |
| 16 | +
|
| 17 | +.. Title |
| 18 | +
|
| 19 | +ns2.col.foo lookup -- Look up some foo :ansopt:`ns2.col.foo#lookup:bar` |
| 20 | ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
| 21 | + |
| 22 | +.. Collection note |
| 23 | +
|
| 24 | +.. note:: |
| 25 | + This lookup plugin is part of the `ns2.col collection <https://galaxy.ansible.com/ui/repo/published/ns2/col/>`_. |
| 26 | + |
| 27 | + It is not included in ``ansible-core``. |
| 28 | + To check whether it is installed, run :code:`ansible-galaxy collection list`. |
| 29 | + |
| 30 | + To install it, use: :code:`ansible-galaxy collection install ns2.col`. |
| 31 | + |
| 32 | + To use it in a playbook, specify: :code:`ns2.col.foo`. |
| 33 | + |
| 34 | +.. version_added |
| 35 | +
|
| 36 | +.. rst-class:: ansible-version-added |
| 37 | + |
| 38 | +New in ns2.col 1.0.0 |
| 39 | + |
| 40 | +.. contents:: |
| 41 | + :local: |
| 42 | + :depth: 1 |
| 43 | + |
| 44 | +.. Deprecated |
| 45 | +
|
| 46 | +
|
| 47 | +Synopsis |
| 48 | +-------- |
| 49 | + |
| 50 | +.. Description |
| 51 | +
|
| 52 | +- This looks up some foo. |
| 53 | +- Whatever that is. |
| 54 | + |
| 55 | + |
| 56 | +.. Aliases |
| 57 | +
|
| 58 | +
|
| 59 | +.. Requirements |
| 60 | +
|
| 61 | +
|
| 62 | +
|
| 63 | +
|
| 64 | +.. Terms |
| 65 | +
|
| 66 | +Terms |
| 67 | +----- |
| 68 | + |
| 69 | +.. tabularcolumns:: \X{1}{3}\X{2}{3} |
| 70 | + |
| 71 | +.. list-table:: |
| 72 | + :width: 100% |
| 73 | + :widths: auto |
| 74 | + :header-rows: 1 |
| 75 | + :class: longtable ansible-option-table |
| 76 | + |
| 77 | + * - Parameter |
| 78 | + - Comments |
| 79 | + |
| 80 | + * - .. raw:: html |
| 81 | + |
| 82 | + <div class="ansible-option-cell"> |
| 83 | + <div class="ansibleOptionAnchor" id="parameter-_terms"></div> |
| 84 | + |
| 85 | + .. _ansible_collections.ns2.col.foo_lookup__parameter-_terms: |
| 86 | + |
| 87 | + .. rst-class:: ansible-option-title |
| 88 | + |
| 89 | + **Terms** |
| 90 | + |
| 91 | + .. raw:: html |
| 92 | + |
| 93 | + <a class="ansibleOptionLink" href="#parameter-_terms" title="Permalink to this option"></a> |
| 94 | + |
| 95 | + .. ansible-option-type-line:: |
| 96 | + |
| 97 | + :ansible-option-type:`list` / :ansible-option-elements:`elements=string` / :ansible-option-required:`required` |
| 98 | + |
| 99 | + |
| 100 | + |
| 101 | + |
| 102 | + .. raw:: html |
| 103 | + |
| 104 | + </div> |
| 105 | + |
| 106 | + - .. raw:: html |
| 107 | + |
| 108 | + <div class="ansible-option-cell"> |
| 109 | + |
| 110 | + The stuff to look up. |
| 111 | + |
| 112 | + |
| 113 | + .. raw:: html |
| 114 | + |
| 115 | + </div> |
| 116 | + |
| 117 | + |
| 118 | + |
| 119 | + |
| 120 | + |
| 121 | +.. Options |
| 122 | +
|
| 123 | +Keyword parameters |
| 124 | +------------------ |
| 125 | + |
| 126 | +This describes keyword parameters of the lookup. These are the values ``key1=value1``, ``key2=value2`` and so on in the following |
| 127 | +examples: ``lookup('ns2.col.foo', key1=value1, key2=value2, ...)`` and ``query('ns2.col.foo', key1=value1, key2=value2, ...)`` |
| 128 | + |
| 129 | +.. tabularcolumns:: \X{1}{3}\X{2}{3} |
| 130 | + |
| 131 | +.. list-table:: |
| 132 | + :width: 100% |
| 133 | + :widths: auto |
| 134 | + :header-rows: 1 |
| 135 | + :class: longtable ansible-option-table |
| 136 | + |
| 137 | + * - Parameter |
| 138 | + - Comments |
| 139 | + |
| 140 | + * - .. raw:: html |
| 141 | + |
| 142 | + <div class="ansible-option-cell"> |
| 143 | + <div class="ansibleOptionAnchor" id="parameter-bar"></div> |
| 144 | + |
| 145 | + .. _ansible_collections.ns2.col.foo_lookup__parameter-bar: |
| 146 | + |
| 147 | + .. rst-class:: ansible-option-title |
| 148 | + |
| 149 | + **bar** |
| 150 | + |
| 151 | + .. raw:: html |
| 152 | + |
| 153 | + <a class="ansibleOptionLink" href="#parameter-bar" title="Permalink to this option"></a> |
| 154 | + |
| 155 | + .. ansible-option-type-line:: |
| 156 | + |
| 157 | + :ansible-option-type:`string` |
| 158 | + |
| 159 | + |
| 160 | + |
| 161 | + |
| 162 | + .. raw:: html |
| 163 | + |
| 164 | + </div> |
| 165 | + |
| 166 | + - .. raw:: html |
| 167 | + |
| 168 | + <div class="ansible-option-cell"> |
| 169 | + |
| 170 | + Foo bar. |
| 171 | + |
| 172 | + |
| 173 | + .. raw:: html |
| 174 | + |
| 175 | + </div> |
| 176 | + |
| 177 | + |
| 178 | +.. Attributes |
| 179 | +
|
| 180 | +
|
| 181 | +.. Notes |
| 182 | +
|
| 183 | +Notes |
| 184 | +----- |
| 185 | + |
| 186 | +.. note:: |
| 187 | + - When keyword and positional parameters are used together, positional parameters must be listed before keyword parameters: |
| 188 | + ``lookup('ns2.col.foo', term1, term2, key1=value1, key2=value2)`` and ``query('ns2.col.foo', term1, term2, key1=value1, key2=value2)`` |
| 189 | + |
| 190 | +.. Seealso |
| 191 | +
|
| 192 | +
|
| 193 | +.. Examples |
| 194 | +
|
| 195 | +Examples |
| 196 | +-------- |
| 197 | + |
| 198 | +.. code-block:: yaml+jinja |
| 199 | + |
| 200 | + - name: Look up bar |
| 201 | + ansible.builtin.debug: |
| 202 | + msg: "{{ lookup('ns2.col.foo', 'bar') }}" |
| 203 | + |
| 204 | + |
| 205 | + |
| 206 | +.. Facts |
| 207 | +
|
| 208 | +
|
| 209 | +.. Return values |
| 210 | +
|
| 211 | +Return Value |
| 212 | +------------ |
| 213 | + |
| 214 | +.. tabularcolumns:: \X{1}{3}\X{2}{3} |
| 215 | + |
| 216 | +.. list-table:: |
| 217 | + :width: 100% |
| 218 | + :widths: auto |
| 219 | + :header-rows: 1 |
| 220 | + :class: longtable ansible-option-table |
| 221 | + |
| 222 | + * - Key |
| 223 | + - Description |
| 224 | + |
| 225 | + * - .. raw:: html |
| 226 | + |
| 227 | + <div class="ansible-option-cell"> |
| 228 | + <div class="ansibleOptionAnchor" id="return-_raw"></div> |
| 229 | + |
| 230 | + .. _ansible_collections.ns2.col.foo_lookup__return-_raw: |
| 231 | + |
| 232 | + .. rst-class:: ansible-option-title |
| 233 | + |
| 234 | + **Return value** |
| 235 | + |
| 236 | + .. raw:: html |
| 237 | + |
| 238 | + <a class="ansibleOptionLink" href="#return-_raw" title="Permalink to this return value"></a> |
| 239 | + |
| 240 | + .. ansible-option-type-line:: |
| 241 | + |
| 242 | + :ansible-option-type:`list` / :ansible-option-elements:`elements=string` |
| 243 | + |
| 244 | + .. raw:: html |
| 245 | + |
| 246 | + </div> |
| 247 | + |
| 248 | + - .. raw:: html |
| 249 | + |
| 250 | + <div class="ansible-option-cell"> |
| 251 | + |
| 252 | + The resulting stuff. |
| 253 | + |
| 254 | + |
| 255 | + .. rst-class:: ansible-option-line |
| 256 | + |
| 257 | + :ansible-option-returned-bold:`Returned:` success |
| 258 | + |
| 259 | + |
| 260 | + .. raw:: html |
| 261 | + |
| 262 | + </div> |
| 263 | + |
| 264 | + |
| 265 | + |
| 266 | +.. Status (Presently only deprecated) |
| 267 | +
|
| 268 | +
|
| 269 | +.. Authors |
| 270 | +
|
| 271 | +Authors |
| 272 | +~~~~~~~ |
| 273 | + |
| 274 | +- Felix Fontein (@felixfontein) |
| 275 | + |
| 276 | + |
| 277 | +.. hint:: |
| 278 | + 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. |
| 279 | + |
| 280 | +.. Extra links |
| 281 | +
|
| 282 | +
|
| 283 | +.. Parsing errors |
0 commit comments