From 02947eb0b9f5717551bbdbee3b4fb00fe60f48dd Mon Sep 17 00:00:00 2001 From: Dag Wieers Date: Thu, 4 Oct 2012 20:58:07 +0200 Subject: [PATCH] This hopefully fixes the documentation for the fail module --- fail | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/fail b/fail index 7e7d7e6472d..b1827807b1a 100644 --- a/fail +++ b/fail @@ -32,7 +32,7 @@ options: - The customized message used for failing execution. If ommited, fail will simple bail out with a generic message. required: false - default: "Failed because only_if condition is true" + default: "'Failed because only_if condition is true'" rc: description: - The return code of the failure. This is currently not used by @@ -40,10 +40,11 @@ options: required: false default: 1 examples: - - code: - - action: fail msg="The system may not be provisioned according to the CMDB status." - only_if: "'$cmdb_status' != 'to-be-staged'" - description: "Example of how a playbook may fail when a condition is not met" + - code: | + action: fail msg="The system may not be provisioned according to the CMDB status." rc=100 + only_if: "'$cmdb_status' != 'to-be-staged'" + description: "Example playbook using fail and only_if together" + author: Dag Wieers '''