mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-24 13:50:22 -07:00
Complain when modules do not have documentation.
This commit is contained in:
parent
a2f76c1c69
commit
31a4fe412f
2 changed files with 23 additions and 21 deletions
|
@ -1,4 +1,4 @@
|
|||
.TH ANSIBLE.LINEINFILE 5 "2012-09-26" "unknown" "ANSIBLE MODULES"
|
||||
.TH ANSIBLE.LINEINFILE 5 "2012-09-30" "0.8" "ANSIBLE MODULES"
|
||||
." generated from library/lineinfile
|
||||
.SH NAME
|
||||
lineinfile \- Ensure a particular line is in a file
|
||||
|
@ -8,35 +8,27 @@ lineinfile \- Ensure a particular line is in a file
|
|||
This module will search a file for a line, and ensure that it is present or absent.
|
||||
.PP
|
||||
This is primarily useful when you want to change a single line in a file only. For other cases, see the \fIcopy\fR or \fItemplate\fR modules.
|
||||
|
||||
." ------ OPTIONS
|
||||
."
|
||||
."
|
||||
.SH OPTIONS
|
||||
.IP name
|
||||
The file to modify
|
||||
(required)
|
||||
.IP regexp
|
||||
The regular expression to look for in the file. For \fIstate=present\fR, the pattern to replace. For \fIstate=absent\fR, the pattern of the line to remove.
|
||||
(required)
|
||||
|
||||
.IP state
|
||||
Whether the line should be there or not.
|
||||
." .SS Choices
|
||||
Whether the line should be there or not.
|
||||
.IR Choices :
|
||||
present,absent.
|
||||
.IP line
|
||||
Required for \fIstate=present\fR. The line to insert/replace into the file. Must match the value given to \fCregexp\fR.
|
||||
|
||||
present,absent. (default: present)
|
||||
.IP name
|
||||
The file to modify(required)
|
||||
.IP insertafter
|
||||
Used with \fIstate=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.
|
||||
." .SS Choices
|
||||
Used with \fIstate=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.
|
||||
BOF,EOF. (default: EOF)
|
||||
.IP regexp
|
||||
The regular expression to look for in the file. For \fIstate=present\fR, the pattern to replace. For \fIstate=absent\fR, the pattern of the line to remove.(required)
|
||||
.IP line
|
||||
Required for \fIstate=present\fR. The line to insert/replace into the file. Must match the value given to \fCregexp\fR.
|
||||
.IP backup
|
||||
Create a backup file including the timestamp information so you can get the original file back if you somehow clobbered it incorrectly.
|
||||
|
||||
|
||||
."
|
||||
Create a backup file including the timestamp information so you can get the original file back if you somehow clobbered it incorrectly.."
|
||||
."
|
||||
." ------ NOTES
|
||||
."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue