ansible.builtin.fail – Fail with custom message
This module is part of
ansible-core and included in all Ansible
installations. In most cases, you can use the short
fail even without specifying the
However, we recommend you use the FQCN for easy linking to the
module documentation and to avoid conflicting with other collections that may have
the same module name.
New in version 0.8: of ansible.builtin
This module fails the progress with a custom message.
It can be useful for bailing out when a certain condition is met using
This module is also supported for Windows targets.
This module has a corresponding action plugin.
"Failed as requested from task"
The customized message used for failing execution.
If omitted, fail will simply bail out with a generic message.