mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
update docs for insertbefore/insertafter
This commit is contained in:
parent
d388516046
commit
9dd4f22430
1 changed files with 7 additions and 5 deletions
|
@ -85,8 +85,9 @@ options:
|
||||||
default: EOF
|
default: EOF
|
||||||
description:
|
description:
|
||||||
- Used with C(state=present). If specified, the line will be inserted
|
- Used with C(state=present). If specified, the line will be inserted
|
||||||
after the specified regular expression. A special value is
|
after the last match of specified regular expression. A special value is
|
||||||
available; C(EOF) for inserting the line at the end of the file.
|
available; C(EOF) for inserting the line at the end of the file.
|
||||||
|
If specified regular expresion has no matches, EOF will be used instead.
|
||||||
May not be used with C(backrefs).
|
May not be used with C(backrefs).
|
||||||
choices: [ 'EOF', '*regex*' ]
|
choices: [ 'EOF', '*regex*' ]
|
||||||
insertbefore:
|
insertbefore:
|
||||||
|
@ -94,9 +95,10 @@ options:
|
||||||
version_added: "1.1"
|
version_added: "1.1"
|
||||||
description:
|
description:
|
||||||
- Used with C(state=present). If specified, the line will be inserted
|
- Used with C(state=present). If specified, the line will be inserted
|
||||||
before the specified regular expression. A value is available;
|
before the last match of specified regular expression. A value is
|
||||||
C(BOF) for inserting the line at the beginning of the file.
|
available; C(BOF) for inserting the line at the beginning of the file.
|
||||||
May not be used with C(backrefs).
|
If specified regular expresion has no matches, C(insertbefore) will be
|
||||||
|
ignored. May not be used with C(backrefs).
|
||||||
choices: [ 'BOF', '*regex*' ]
|
choices: [ 'BOF', '*regex*' ]
|
||||||
create:
|
create:
|
||||||
required: false
|
required: false
|
||||||
|
|
Loading…
Reference in a new issue