Commit 27ff2261 by Michael DeHaan

Fix lineinfile docs formatting

parent c692de6b
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
import re import re
import os import os
DOCUMENTATION = ''' DOCUMENTATION = """
--- ---
module: lineinfile module: lineinfile
author: Daniel Hokka Zakrisson author: Daniel Hokka Zakrisson
...@@ -64,7 +64,7 @@ options: ...@@ -64,7 +64,7 @@ options:
after the specified regular expression. Two special values are after the specified regular expression. Two special values are
available; C(BOF) for inserting the line at the beginning of the 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. file, and C(EOF) for inserting the line at the end of the file.
choices: [ BOF, EOF, *regex* ] choices: [ 'BOF', 'EOF', '*regex*' ]
default: EOF default: EOF
create: create:
required: false required: false
...@@ -81,10 +81,10 @@ options: ...@@ -81,10 +81,10 @@ options:
- Create a backup file including the timestamp information so you can - Create a backup file including the timestamp information so you can
get the original file back if you somehow clobbered it incorrectly. get the original file back if you somehow clobbered it incorrectly.
examples: 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/sudoers state=absent regexp="^%wheel"'
- code: 'lineinfile: dest=/etc/httpd/conf/httpd.conf regexp="^Listen " insertafter="^#Listen " line="Listen 8080"' - code: 'lineinfile: dest=/etc/httpd/conf/httpd.conf regexp="^Listen " insertafter="^#Listen " line="Listen 8080"'
''' """
def present(module, dest, regexp, line, insertafter, create, backup): def present(module, dest, regexp, line, insertafter, create, backup):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment