Commit graph

15 commits

Author SHA1 Message Date
Anton Ovchinnikov
fc417a5ab0 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-07-28 12:12:14 -04:00
tazle
93f47524d9 Fixed /etc/hosts example for blockinfile (#2387)
- Fixed name
- Fixed name/ip order in template
2016-06-08 10:22:52 -04:00
dougluce
b6b04795c3 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-05-25 07:54:07 +02:00
Hans-Joachim Kliemeck
896f6dcd34 blockinfile will always add newline at EOF (#2261) 2016-05-20 10:25:10 +02:00
Toshio Kuratomi
a12696d598 the ansible version constant is now in a different place 2016-05-12 18:20:54 -07:00
Michael Scherer
816673dd6f Use path type for blockinfile 'dest' argument (#2192) 2016-05-10 12:23:08 +02:00
Toshio Kuratomi
1846de2809 Switch blockinfile to using the latest best way to get ansible version 2016-04-29 20:33:35 -07:00
Toshio Kuratomi
d871df6c27 Switch from deprecated ANSIBLE_VERSION to ansible.__version__ 2016-04-24 21:15:15 -07:00
Brian Coca
9cab73b5dd Merge pull request #1873 from mscherer/fix_1849
Reindent with_items, fix #1849
2016-03-19 13:09:43 -07:00
Michael Scherer
4396c26af5 Reindent with_items, fix #1849 2016-03-19 13:40:58 +01:00
Toshio Kuratomi
33e1d9d1cb Doc fixes 2016-03-18 09:05:36 -07:00
Brian Coca
fade5b7936 added docs to blockinfile with_ interactions
fixes #1592
2016-02-24 08:40:33 -05:00
Ritesh Khadgaray
a523ce7e00 files/blockinfile.py : ERROR: version_added for new option (follow) should be 2.1. Currently 0.0 2016-02-18 17:38:38 +05:30
Brian Coca
d0c607c7a4 added follow docs back, removed from shared 2016-02-15 14:17:50 -05:00
YAEGASHI Takeshi
592e300851 New module: blockinfile 2015-10-13 07:52:33 +09:00