Fix lineinfile docs formatting
This commit is contained in:
parent
a36db3bbef
commit
83fcdff9aa
1 changed files with 4 additions and 4 deletions
|
@ -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):
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue