corrected docs
This commit is contained in:
parent
cd39ff9996
commit
c6dedea1a6
1 changed files with 5 additions and 5 deletions
|
@ -60,7 +60,7 @@ options:
|
||||||
matches. If not set, matches are removed entirely.
|
matches. If not set, matches are removed entirely.
|
||||||
after:
|
after:
|
||||||
required: false
|
required: false
|
||||||
version_added: "2.3"
|
version_added: "2.4"
|
||||||
description:
|
description:
|
||||||
- If specified, the line after the replace/remove will start. Can be used
|
- If specified, the line after the replace/remove will start. Can be used
|
||||||
in combination with C(before).
|
in combination with C(before).
|
||||||
|
@ -68,7 +68,7 @@ options:
|
||||||
U(http://docs.python.org/2/library/re.html).
|
U(http://docs.python.org/2/library/re.html).
|
||||||
before:
|
before:
|
||||||
required: false
|
required: false
|
||||||
version_added: "2.3"
|
version_added: "2.4"
|
||||||
description:
|
description:
|
||||||
- If specified, the line before the replace/remove will occur. Can be used
|
- If specified, the line before the replace/remove will occur. Can be used
|
||||||
in combination with C(after).
|
in combination with C(after).
|
||||||
|
@ -104,7 +104,7 @@ EXAMPLES = r"""
|
||||||
replace: '\1new.host.name\2'
|
replace: '\1new.host.name\2'
|
||||||
backup: yes
|
backup: yes
|
||||||
|
|
||||||
# Replace after the expression till the end of the file
|
# Replace after the expression till the end of the file (requires >=2.4)
|
||||||
- replace:
|
- replace:
|
||||||
path: /etc/hosts
|
path: /etc/hosts
|
||||||
regexp: '(\s+)old\.host\.name(\s+.*)?$'
|
regexp: '(\s+)old\.host\.name(\s+.*)?$'
|
||||||
|
@ -112,7 +112,7 @@ EXAMPLES = r"""
|
||||||
after: 'Start after line.*'
|
after: 'Start after line.*'
|
||||||
backup: yes
|
backup: yes
|
||||||
|
|
||||||
# Replace before the expression till the begin of the file
|
# Replace before the expression till the begin of the file (requires >=2.4)
|
||||||
- replace:
|
- replace:
|
||||||
path: /etc/hosts
|
path: /etc/hosts
|
||||||
regexp: '(\s+)old\.host\.name(\s+.*)?$'
|
regexp: '(\s+)old\.host\.name(\s+.*)?$'
|
||||||
|
@ -120,7 +120,7 @@ EXAMPLES = r"""
|
||||||
before: 'Start before line.*'
|
before: 'Start before line.*'
|
||||||
backup: yes
|
backup: yes
|
||||||
|
|
||||||
# Replace between the expressions
|
# Replace between the expressions (requires >=2.4)
|
||||||
- replace:
|
- replace:
|
||||||
path: /etc/hosts
|
path: /etc/hosts
|
||||||
regexp: '(\s+)old\.host\.name(\s+.*)?$'
|
regexp: '(\s+)old\.host\.name(\s+.*)?$'
|
||||||
|
|
Loading…
Reference in a new issue