diff --git a/lib/ansible/modules/lineinfile.py b/lib/ansible/modules/lineinfile.py index 9e9fdd9b8ef..105fcc86604 100644 --- a/lib/ansible/modules/lineinfile.py +++ b/lib/ansible/modules/lineinfile.py @@ -87,13 +87,11 @@ options: - If specified, the line will be inserted after the last match of specified regular expression. - If the first match is required, use(firstmatch=yes). - A special value is available; V(EOF) for inserting the line at the end of the file. - - If specified regular expression has no matches, EOF will be used instead. + - If specified regular expression has no matches or no value is passed, V(EOF) will be used instead. - If O(insertbefore) is set, default value V(EOF) will be ignored. - If regular expressions are passed to both O(regexp) and O(insertafter), O(insertafter) is only honored if no match for O(regexp) is found. - May not be used with O(backrefs) or O(insertbefore). type: str - choices: [ EOF, '*regex*' ] - default: EOF insertbefore: description: - Used with O(state=present). @@ -104,7 +102,6 @@ options: - If regular expressions are passed to both O(regexp) and O(insertbefore), O(insertbefore) is only honored if no match for O(regexp) is found. - May not be used with O(backrefs) or O(insertafter). type: str - choices: [ BOF, '*regex*' ] version_added: "1.1" create: description: diff --git a/test/sanity/ignore.txt b/test/sanity/ignore.txt index dfc5dc392d6..d5455c97ab3 100644 --- a/test/sanity/ignore.txt +++ b/test/sanity/ignore.txt @@ -22,8 +22,6 @@ lib/ansible/modules/file.py validate-modules:undocumented-parameter lib/ansible/modules/find.py use-argspec-type-path # fix needed lib/ansible/modules/git.py use-argspec-type-path lib/ansible/modules/git.py validate-modules:doc-required-mismatch -lib/ansible/modules/lineinfile.py validate-modules:doc-choices-do-not-match-spec -lib/ansible/modules/lineinfile.py validate-modules:doc-default-does-not-match-spec lib/ansible/modules/package_facts.py validate-modules:doc-choices-do-not-match-spec lib/ansible/modules/service.py validate-modules:nonexistent-parameter-documented lib/ansible/modules/service.py validate-modules:use-run-command-not-popen