1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Fix lineinfile example

The examples comment said 'Add a line to a file if it does not exist, without passing regexp' which suggests, that the file is being created. But the default for 'create' is false. Thus the example lacked this option.
This commit is contained in:
Michael Gajda 2018-02-26 20:17:01 +01:00 committed by ansibot
parent 4f63123320
commit 45e7689335

View file

@ -154,6 +154,7 @@ EXAMPLES = r"""
- lineinfile:
path: /tmp/testfile
line: '192.168.1.99 foo.lab.net foo'
create: true
# Fully quoted because of the ': ' on the line. See the Gotchas in the YAML docs.
- lineinfile: