Hi,
Thanks for the heads up,
Meanwhile I managed to overcome this with bunch of IF's in my template
which looks something like:
{% for i in ansible_play_hosts %}
<tr>
{% if hostvars[i].check_finish is not defined %}
<td>{{ i }}</td>
<td>Host is unreachable by Ansible</td>
{% else %}
{% if hostvars[i].check_finish.failed is defined %}
<td class="tg-o8wf">{{ i }}</td>
<td class="tg-o8wf" colspan="7">{{ hostvars[i].check_finish.msg }}</td>
{% else %}
<td>{{ i }}</td>
<td>{{ hostvars[i].ansible_env.USERDOMAIN }}</td>
...
...
...
{% endif %}
{% endif %}
{% endfor %}
On Tuesday, November 8, 2016 at 1:06:27 AM UTC+2, Brian Coca wrote:
>
> What is failing is that you are attempting to access data you don't have
> (you failed to gather it). There seems to be a bug in ansible_play_hosts
> that is not currently (2.2) excluding failed hosts from the list.
>
>
> ----------
> Brian Coca
>
--
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 post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/4db2720d-268c-4deb-b5d5-873d806dbca7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.