Skip to content

unreachable

Collection Note

This module is part of the ansible.builtin collection. To install the collection, use:

ansible-galaxy collection install ansible.builtin
Added in version 1.9.

Synopsis

  • Tests if task was not able to reach the host for execution
  • This test checks for the existence of a C(unreachable) key in the input dictionary and that it's value is V(True)

Parameters

Parameter Defaults / Choices Comments
_input
dictionary
required
registered result from an Ansible task

Examples

# test 'status' to know how to respond
{{ taskresults is unreachable }}

Return Values

Key Data Type Description Returned
_value boolean Returns V(True) if the task flagged the host as unreachable, V(False) otherwise.

Authors

  • Ansible Core