From c3a805aa3c919f5be82e8211544f83de5cd3aead Mon Sep 17 00:00:00 2001 From: Jordan Borean Date: Thu, 1 Mar 2018 07:31:15 +1000 Subject: [PATCH] minor wording changes to remove ambiguity --- 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 1ca4ce03f37..0efd0c6f195 100644 --- a/lib/ansible/modules/files/lineinfile.py +++ b/lib/ansible/modules/files/lineinfile.py @@ -150,11 +150,11 @@ EXAMPLES = r""" insertbefore: '^www.*80/tcp' line: '# port for http by default' -# Add a line to a file if it does not exist, without passing regexp +# Add a line to a file if the file does not exist, without passing regexp - lineinfile: path: /tmp/testfile line: '192.168.1.99 foo.lab.net foo' - create: true + create: yes # Fully quoted because of the ': ' on the line. See the Gotchas in the YAML docs. - lineinfile: