assert tasks failing in FD, SD and WP containers
with last ansible version, there is a new error:
TASK [Assert variables] **************************************************************************************************************************************************************************************************************
[WARNING]: conditional statements should not include jinja2 templating delimiters such as {{ }} or {% %}. Found: {{ item.value | length }} > 0
fatal: [localhost]: FAILED! => {"msg": "The conditional check '{{ item.value | length }} > 0' failed. The error was: Conditional is marked as unsafe, and cannot be evaluated."}
seems due to these kind of tasks in FD, SD, and WP:
assert:
that:
- '"{{ item.value }}" is defined'
- '{{ item.value | length }} > 0'
quiet: True
fail_msg: '{{ item.name }} is missing or empty'
loop:
- name: 'CUSTOMERID'
value: '{{ CUSTOMERID }}'