This module fails the progress with a custom message. It can be useful for bailing out when a certain condition is met using only_if.
."------OPTIONS
."
."
.SHOPTIONS
.IPmsg
The customized message used for failing execution. If ommited, fail will simple bail out with a generic message. (default: Failed because only_if condition is true)
.IPrc
The return code of the failure. This is currently not used by Ansible, but might be used in the future. (default: 1)."
."
."------NOTES
."
."
."------EXAMPLES
.SHEXAMPLES
.PP
.nf
[{'action': 'fail msg="The system may not be provisioned according to the CMDB status."', 'only_if': "'$cmdb_status' != 'to-be-staged'"}]