Commit Graph

15 Commits (2ceb672016c6e8bbba1b1201cb7cf1bb391ee982)

Author SHA1 Message Date
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