Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update fail docs for new syntax #3480

Merged
merged 1 commit into from
Jul 11, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions library/utilities/fail
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ module: fail
short_description: Fail with custom message
description:
- This module fails the progress with a custom message. It can be
useful for bailing out when a certain condition is met using C(only_if).
useful for bailing out when a certain condition is met using C(when).
version_added: "0.8"
options:
msg:
Expand All @@ -38,7 +38,7 @@ author: Dag Wieers
'''

EXAMPLES = '''
# Example playbook using fail and only_if together
# Example playbook using fail and when together
- fail: msg="The system may not be provisioned according to the CMDB status."
only_if: "'$cmdb_status' != 'to-be-staged'"
when: "{{ cmdb_status }} != 'to-be-staged'"
'''