Execution
Date 11 Sep 2024 12:00:30 +0100
Duration 00:00:11.90
Controller ssh-gw-4.layershift.com
User root
Versions
Ansible 2.16.4
ara 1.7.1 / 1.7.1
Python 3.10.10
Summary
21 Hosts
11 Tasks
68 Results
3 Plays
6 Files
0 Records

Task result details

  • Status
    FAILED
  • Duration
    00:00:00.06
  • Play
    Process Plesk hosts
  • Task
    Select 10 random Plesk hosts
  • Host
    localhost

Field Value
msg
template error while templating string: Encountered unknown tag 'do'. Jinja was looking for the following tags: 'endfor' or 'else'. The innermost block that needs to be closed is 'for'.. String: {% set count = 10 %} {% set random_hosts = [] %} {% for item in plesk_hosts | random(count) %}
  {% do random_hosts.append(item) %}
{% endfor %} {% if plesk_hosts | length <= 10 %}
  {{ plesk_hosts }}
{% else %}
  {{ random_hosts }}
{% endif %}
. Encountered unknown tag 'do'. Jinja was looking for the following tags: 'endfor' or 'else'. The innermost block that needs to be closed is 'for'.