Skip to content

changed

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 required changes to complete
  • This test checks for the existence of a C(changed) key in the input dictionary and that it is V(True) if present

Parameters

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

Examples

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

Return Values

Key Data Type Description Returned
_value boolean Returns V(True) if the task was required changes, V(False) otherwise.

Authors

  • Ansible Core