summaryrefslogtreecommitdiff
path: root/changelogs
diff options
context:
space:
mode:
authorSam Doran <sdoran@redhat.com>2018-07-03 16:08:49 -0400
committerMatt Davis <nitzmahone@users.noreply.github.com>2018-07-03 13:08:49 -0700
commitab93ad8a0a05463776cd00e7165bfc66b64e7411 (patch)
treeec465663b20a5faa311789789dc06afed531bc27 /changelogs
parent916317466d91ee56dfa0e3b98c36f5e18ab2751d (diff)
downloadansible-ab93ad8a0a05463776cd00e7165bfc66b64e7411.tar.gz
Backport #41767 for 2.5 -Skip if insertbefore is using BOF until later in the module (#41930)
* Skip if insertbefore BOF until later (#41767) If a line match is found in the file and no regexp is specified, insertbefore would improperly try to add a line if set to BOF. Add tests for this scenario. (cherry picked from commit eaae1318f83b6ef4d02ab9262ff7ab2641b51944) * Add changelog fragment
Diffstat (limited to 'changelogs')
-rw-r--r--changelogs/fragments/lineinfile-insertbefore-bof-bugfix.yaml2
1 files changed, 2 insertions, 0 deletions
diff --git a/changelogs/fragments/lineinfile-insertbefore-bof-bugfix.yaml b/changelogs/fragments/lineinfile-insertbefore-bof-bugfix.yaml
new file mode 100644
index 0000000000..5364283d4b
--- /dev/null
+++ b/changelogs/fragments/lineinfile-insertbefore-bof-bugfix.yaml
@@ -0,0 +1,2 @@
+bugfixes:
+ - lineinfile - fix insertbefore when used with BOF to not insert duplicate lines (https://github.com/ansible/ansible/issues/38219)