From 86f8a3d381c449f38e273b19d662baa8ab2850c3 Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Tue, 3 Mar 2015 11:38:08 -0800 Subject: [PATCH] Clarify the documented behaviour of insertbefore slightly. --- lib/ansible/modules/files/lineinfile.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/modules/files/lineinfile.py b/lib/ansible/modules/files/lineinfile.py index a89dcf0b331..2f7154e17be 100644 --- a/lib/ansible/modules/files/lineinfile.py +++ b/lib/ansible/modules/files/lineinfile.py @@ -97,8 +97,8 @@ options: - Used with C(state=present). If specified, the line will be inserted before the last match of specified regular expression. A value is available; C(BOF) for inserting the line at the beginning of the file. - If specified regular expresion has no matches, C(insertbefore) will be - ignored. May not be used with C(backrefs). + If specified regular expresion has no matches, the line will be + inserted at the end of the file. May not be used with C(backrefs). choices: [ 'BOF', '*regex*' ] create: required: false