more explicit moustache docs (#77051)

pull/77083/head
Brian Coca 3 years ago committed by GitHub
parent e620b96f49
commit 84b85a5b5a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -689,6 +689,9 @@ For 'non host vars' you can use the :ref:`vars lookup<vars_lookup>` plugin:
{{ lookup('vars', 'somevar_' ~ other_var) }}
To determine if a keyword requires ``{{ }}`` or even supports templating, use ``ansible-doc -t keyword <name>``,
this will return documentation on the keyword including a ``template`` field with the values ``explicit`` (requires ``{{ }}``),
``implicit`` (assumes ``{{ }}``, so no needed) or ``static`` (no templating supported, all characters will be interpreted literally)
.. _why_no_wheel:

@ -168,6 +168,10 @@ You can also combine multiple conditions to override "changed" result.
- '"ERROR" in result.stderr'
- result.rc == 2
.. note::
Just like ``when`` these two conditionals do not require templating delimiters (``{{ }}``) as they are implied.
See :ref:`controlling_what_defines_failure` for more conditional syntax examples.
Ensuring success for command and shell

Loading…
Cancel
Save