Toshio Kuratomi
bd12c4bfe7
Refreshed metadata for extras modules
2016-12-08 11:35:18 -05:00
Fabio Alessandro Locati
616752c2e3
Correct indentation in examples - files/blockinfile.py ( #3630 )
...
* indentation in with_items section is out, correct that.
2016-12-08 11:35:14 -05:00
Koki Nomura
8ccf166a56
blockinfile: Fixes #1926 by comparing a marker to a whole line instead of a line prefix ( #3339 )
2016-12-08 11:35:09 -05:00
Michael Scherer
ceec679302
Make blockinfile work with python3
...
Traceback (most recent call last):
File \"/tmp/ansible_ueg52c0b/ansible_module_blockinfile.py\", line 319, in <module>
main()
File \"/tmp/ansible_ueg52c0b/ansible_module_blockinfile.py\", line 259, in main
if line.startswith(marker0):
TypeError: startswith first arg must be bytes or a tuple of bytes, not str
Also clean imports while on it.
2016-12-08 11:35:02 -05:00
YAEGASHI Takeshi
8bb9149a10
blockinfile: Add a newline at EOF when the file is newly created ( #3174 )
...
Ref: #2687
2016-12-08 11:35:01 -05:00
Michael Scherer
50b31a2343
Do not import splitter, since we do not use it
2016-12-08 11:35:00 -05:00
Brian Coca
7691af8ce6
added unsafe_writes to blockinfile ( #2701 )
...
depends on http://github.com/ansible/ansible/issues/17016
2016-12-08 11:34:39 -05:00
Anton Ovchinnikov
c6ea196a8c
Fix check mode for blockinfile when 'create: yes' is specified ( #2413 )
...
Make the module more semantically similar to lineinfile when
the destination does not exist. This fixes #2021 .
2016-12-08 11:34:34 -05:00
tazle
03be75fa16
Fixed /etc/hosts example for blockinfile ( #2387 )
...
- Fixed name
- Fixed name/ip order in template
2016-12-08 11:34:21 -05:00
dougluce
aaaf37ae41
Don't bomb if original didn't exist ( #2295 )
...
If we don't have an existing file, original ends up as None. Bug
introduced in 70fa125
2016-12-08 11:34:17 -05:00
Hans-Joachim Kliemeck
393ea3293c
blockinfile will always add newline at EOF ( #2261 )
2016-12-08 11:34:15 -05:00
Toshio Kuratomi
e95c069aa6
the ansible version constant is now in a different place
2016-12-08 11:34:13 -05:00
Michael Scherer
814efc1418
Use path type for blockinfile 'dest' argument ( #2192 )
2016-12-08 11:34:13 -05:00
Toshio Kuratomi
fda13deb08
Switch blockinfile to using the latest best way to get ansible version
2016-12-08 11:34:11 -05:00
Toshio Kuratomi
07e150779d
Switch from deprecated ANSIBLE_VERSION to ansible.__version__
2016-12-08 11:34:08 -05:00
Michael Scherer
2760c2ded0
Reindent with_items, fix #1849
2016-12-08 11:33:58 -05:00
Toshio Kuratomi
5b84102a15
Doc fixes
2016-12-08 11:33:56 -05:00
Brian Coca
88c946ba4d
added docs to blockinfile with_ interactions
...
fixes #1592
2016-12-08 11:33:50 -05:00
Ritesh Khadgaray
c3e9c54f29
files/blockinfile.py : ERROR: version_added for new option (follow) should be 2.1. Currently 0.0
2016-12-08 11:33:49 -05:00
Brian Coca
4702cc9b1b
added follow docs back, removed from shared
2016-12-08 11:33:49 -05:00
YAEGASHI Takeshi
ae72b7c12c
New module: blockinfile
2016-12-08 11:33:34 -05:00