Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ansible/ansible.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSloane Hertel <19572925+s-hertel@users.noreply.github.com>2022-11-03 22:10:45 +0300
committerGitHub <noreply@github.com>2022-11-03 22:10:45 +0300
commitf700047e69a03917194d1ec9f6d73577013362ce (patch)
tree6b3c52735c7c0c36f3a6f8277c9f36fc0f06717e
parenta12a9b409f964a911c7348e85035475fd6eab0b4 (diff)
blockinfile - document multiline marker behavior (#79292)
-rw-r--r--lib/ansible/modules/blockinfile.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/ansible/modules/blockinfile.py b/lib/ansible/modules/blockinfile.py
index 2f914418477..63fc0214543 100644
--- a/lib/ansible/modules/blockinfile.py
+++ b/lib/ansible/modules/blockinfile.py
@@ -36,6 +36,8 @@ options:
- The marker line template.
- C({mark}) will be replaced with the values in C(marker_begin) (default="BEGIN") and C(marker_end) (default="END").
- Using a custom marker without the C({mark}) variable may result in the block being repeatedly inserted on subsequent playbook runs.
+ - Multi-line markers are not supported and will result in the block being repeatedly inserted on subsequent playbook runs.
+ - A newline is automatically appended by the module to C(marker_begin) and C(marker_end).
type: str
default: '# {mark} ANSIBLE MANAGED BLOCK'
block: