Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
30611eaa
Commit
30611eaa
authored
Feb 18, 2014
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6036 from mxxcon/patch-1
docs_pull_request: Add parameters highlighting
parents
6b2bbbb9
4e4be3ed
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
library/files/lineinfile
+7
-7
No files found.
library/files/lineinfile
View file @
30611eaa
...
...
@@ -58,8 +58,8 @@ options:
required: false
description:
- Required for C(state=present). The line to insert/replace into the
file. If
backrefs
is set, may contain backreferences that will get
expanded with the
regexp
capture groups if the regexp matches. The
file. If
C(backrefs)
is set, may contain backreferences that will get
expanded with the
C(regexp)
capture groups if the regexp matches. The
backreferences should be double escaped (see examples).
backrefs:
required: false
...
...
@@ -68,11 +68,11 @@ options:
version_added: "1.1"
description:
- Used with C(state=present). If set, line can contain backreferences
(both positional and named) that will get populated if the
regexp
(both positional and named) that will get populated if the
C(regexp)
matches. This flag changes the operation of the module slightly;
insertbefore and insertafter will be ignored, and if the regexp
C(insertbefore) and C(insertafter) will be ignored, and if the C(regexp)
doesn't match anywhere in the file, the file will be left unchanged.
If the
regexp
does match, the last matching line will be replaced by
If the
C(regexp)
does match, the last matching line will be replaced by
the expanded line parameter.
insertafter:
required: false
...
...
@@ -81,7 +81,7 @@ options:
- Used with C(state=present). If specified, the line will be inserted
after the specified regular expression. A special value is
available; C(EOF) for inserting the line at the end of the file.
May not be used with
backrefs
.
May not be used with
C(backrefs)
.
choices: [ 'EOF', '*regex*' ]
insertbefore:
required: false
...
...
@@ -90,7 +90,7 @@ options:
- Used with C(state=present). If specified, the line will be inserted
before the specified regular expression. A value is available;
C(BOF) for inserting the line at the beginning of the file.
May not be used with
backrefs
.
May not be used with
C(backrefs)
.
choices: [ 'BOF', '*regex*' ]
create:
required: false
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment