On Wed, 30 Jun 2021 23:17:21 -0700 (PDT) "[email protected]" <[email protected]> wrote:
> If value1 is not defined (empty Value1: )
Test the variable is both defined and not empty,
e.g. (minimal version)
{% if value1 is defined and value1|d('')|length > 0 %}
{{ value1 }}
{% else %}
This string must be included
{% endif %}
--
Vladimir Botka
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/20210701105507.0a89ada5%40gmail.com.
pgpsYgiVOcW8r.pgp
Description: OpenPGP digital signature
