diff --git a/lib/ansible/modules/blockinfile.py b/lib/ansible/modules/blockinfile.py index 80f9f3ef3f3..602f0f0684d 100644 --- a/lib/ansible/modules/blockinfile.py +++ b/lib/ansible/modules/blockinfile.py @@ -50,12 +50,10 @@ options: description: - If specified and no begin/ending O(marker) lines are found, the block will be inserted after the last match of specified regular expression. - A special value is available; V(EOF) for inserting the block at the end of the file. - - If specified regular expression has no matches, V(EOF) will be used instead. + - If specified regular expression has no matches or no value is passed, V(EOF) will be used instead. - The presence of the multiline flag (?m) in the regular expression controls whether the match is done line by line or with multiple lines. This behaviour was added in ansible-core 2.14. type: str - choices: [ EOF, '*regex*' ] - default: EOF insertbefore: description: - If specified and no begin/ending O(marker) lines are found, the block will be inserted before the last match of specified regular expression. @@ -64,7 +62,6 @@ options: - The presence of the multiline flag (?m) in the regular expression controls whether the match is done line by line or with multiple lines. This behaviour was added in ansible-core 2.14. type: str - choices: [ BOF, '*regex*' ] create: description: - Create a new file if it does not exist. diff --git a/test/sanity/ignore.txt b/test/sanity/ignore.txt index cffb6d6b7d6..44396362a12 100644 --- a/test/sanity/ignore.txt +++ b/test/sanity/ignore.txt @@ -9,8 +9,6 @@ lib/ansible/modules/async_status.py validate-modules!skip lib/ansible/modules/async_wrapper.py ansible-doc!skip # not an actual module lib/ansible/modules/async_wrapper.py pylint:ansible-bad-function # ignore, required lib/ansible/modules/async_wrapper.py use-argspec-type-path -lib/ansible/modules/blockinfile.py validate-modules:doc-choices-do-not-match-spec -lib/ansible/modules/blockinfile.py validate-modules:doc-default-does-not-match-spec lib/ansible/modules/command.py validate-modules:doc-default-does-not-match-spec # _uses_shell is undocumented lib/ansible/modules/command.py validate-modules:doc-missing-type lib/ansible/modules/command.py validate-modules:nonexistent-parameter-documented