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
27ff2261
Commit
27ff2261
authored
Feb 09, 2013
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix lineinfile docs formatting
parent
c692de6b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
library/lineinfile
+4
-4
No files found.
library/lineinfile
View file @
27ff2261
...
...
@@ -21,7 +21,7 @@
import
re
import
os
DOCUMENTATION
=
'''
DOCUMENTATION
=
"""
---
module: lineinfile
author: Daniel Hokka Zakrisson
...
...
@@ -64,7 +64,7 @@ options:
after the specified regular expression. Two special values are
available; C(BOF) for inserting the line at the beginning of the
file, and C(EOF) for inserting the line at the end of the file.
choices: [
BOF, EOF, *regex*
]
choices: [
'BOF', 'EOF', '*regex*'
]
default: EOF
create:
required: false
...
...
@@ -81,10 +81,10 @@ options:
- Create a backup file including the timestamp information so you can
get the original file back if you somehow clobbered it incorrectly.
examples:
- code:
"lineinfile: dest=/etc/selinux/config regexp=^SELINUX= line=SELINUX=disabled"
- code:
'lineinfile: dest=/etc/selinux/config regexp=^SELINUX= line=SELINUX=disabled'
- code: 'lineinfile: dest=/etc/sudoers state=absent regexp="^
%
wheel"'
- code: 'lineinfile: dest=/etc/httpd/conf/httpd.conf regexp="^Listen " insertafter="^#Listen " line="Listen 8080"'
'''
"""
def
present
(
module
,
dest
,
regexp
,
line
,
insertafter
,
create
,
backup
):
...
...
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