@@ -12,7 +12,7 @@ This module fails the progress with a custom message. It can be useful for baili
.SH OPTIONS
.IP msg
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)
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')
.IP rc
The return code of the failure. This is currently not used by Ansible, but might be used in the future. (default: 1)."
."
...
...
@@ -23,7 +23,9 @@ The return code of the failure. This is currently not used by Ansible, but might
.SH EXAMPLES
.PP
.nf
[{'action': 'fail msg="The system may not be provisioned according to the CMDB status."', 'only_if': "'$cmdb_status' != 'to-be-staged'"}]
action: fail msg="The system may not be provisioned according to the CMDB status." rc=100
lineinfile \- Ensure a particular line is in a file
...
...
@@ -13,16 +13,16 @@ This is primarily useful when you want to change a single line in a file only. F
."
.SH OPTIONS
.IP insertafter
Used with \fCstate=present\fR. If specified, the line will be inserted after the specified regular expression. Two special values are available; \fCBOF\fR for inserting the line at the beginning of the file, and \fCEOF\fR for inserting the line at the end of the file.
.IR Choices :
BOF,EOF. (default: EOF)
.IP state
Whether the line should be there or not.
.IR Choices :
present,absent. (default: present)
.IP name
.IP dest
The file to modify(required)
.IP insertafter
Used with \fCstate=present\fR. If specified, the line will be inserted after the specified regular expression. Two special values are available; \fCBOF\fR for inserting the line at the beginning of the file, and \fCEOF\fR for inserting the line at the end of the file.
.IR Choices :
BOF,EOF. (default: EOF)
.IP regexp
The regular expression to look for in the file. For \fCstate=present\fR, the pattern to replace. For \fCstate=absent\fR, the pattern of the line to remove.(required)
.IP line
...
...
@@ -37,11 +37,11 @@ Create a backup file including the timestamp information so you can get the orig
The shell module takes the command name followed by a list of arguments, space delimited. It is almost exactly like the \fIcommand\fR module but runs the command through the user's configured shell on the remote node.
The shell module takes the command name followed by a list of arguments, space delimited. It is almost exactly like the \fIcommand\fR module but runs the command through a shell (\fC/bin/sh\fR) on the remote node.