Jeff Widman
fd6518179b
Move validate command into doc fragment and fix a few typos
2015-07-21 17:58:43 -07:00
Brian Coca
13116d8ac0
Merge pull request #839 from gimoh/patch-1
...
Do not insert extra newline if line already contains it
2015-06-30 00:09:42 -04:00
Greg DeKoenigsberg
2a5f0bde87
Proper author info for all remaining modules
2015-06-15 15:53:30 -04:00
jaypei
823adbbe36
use the right way to unescape line string
...
Reference https://github.com/ansible/ansible/issues/10864
2015-06-01 15:53:45 -07:00
Toshio Kuratomi
4b44aa4799
Fix use of codecs.escape_decode()
2015-05-17 09:28:14 -07:00
Toshio Kuratomi
142760658f
Slightly more future-proof version of the lineinfile fix
2015-05-17 09:15:57 -07:00
Toshio Kuratomi
2eafbdd63a
Merge branch 'fix-lineinfile' of https://github.com/jaypei/ansible-modules-core into jaypei-fix-lineinfile
2015-05-17 09:14:00 -07:00
Toshio Kuratomi
493144e06c
Correct lineinfile documentation about double quoting... Hasn't been the case for years.
2015-05-15 14:13:27 -07:00
jaypei
fb34842a05
use the right way to unescape line string
...
Reference https://github.com/ansible/ansible/issues/10864
2015-04-29 19:59:55 +08:00
Toshio Kuratomi
559af8d88d
Clarify the documented behaviour of insertbefore slightly.
2015-03-03 11:38:08 -08:00
Toshio Kuratomi
8ec43e5bbc
Merge pull request #411 from p-tr0/devel
...
Fix behavior when insert* doesn't match anything
2015-03-03 11:32:18 -08:00
gimoh
d9f8fa56d8
Do not insert extra newline if line already contains it
...
When using YAML multi-line strings, e.g.:
- lineinfile:
dest: /tmp/foo
line: >
foo
bar
the line already ends with a newline. If an extra newline is appended unconditionally it will lead to inserting an extra newline on each run.
2015-02-23 14:14:00 +00:00
Jeff Bradberry
28375aae7f
Fix breakage in lineinfile check mode when target file does not exist.
...
Similarly to https://github.com/ansible/ansible/issues/6182 , checking of the file attributes should be avoided in check mode when the file didn't originally exist.
Also, avoid creating parent directories in check mode.
Fixes https://github.com/ansible/ansible/issues/9546
2014-12-14 20:48:36 -05:00
Piotr Gosławski
a5b1a599e2
update docs for insertbefore/insertafter
2014-12-04 17:07:03 +01:00
Piotr Gosławski
3c8b4bd4b9
Fix behavior when insert* doesn't match anything
...
If insertbefore/insertafter didn't match anything, lineinfile module was doing nothing, instead of adding the line at end of fille as it's supposed to.
2014-11-30 12:32:08 +01:00
Eric
87dd3afc91
Fix lineinfile documentation typo
2014-11-29 22:41:24 -06:00
James Cammarata
cb69744bce
Adding file doc fragment to those modules in files/ missing it
2014-10-01 20:55:50 -05:00
Michael DeHaan
1c2995d71f
Merge pull request #77 from major/suggest-selinux-enforcing
...
Updating SELinux example doc in lininefile module
2014-10-01 11:53:24 -04:00
Eric Hanchrow
cc0a38d268
Tweak docs to mention replace
2014-09-30 10:52:03 -07:00
Major Hayden
6d697780f9
Updating SELinux example doc in lininefile module
...
Encouraging users to use this Ansible module to enable SELinux seems
like a better idea. It also warms Dan Walsh's heart.
Signed-off-by: Major Hayden <major@mhtx.net>
2014-09-30 07:12:23 -05:00
Michael DeHaan
c8e1a2077e
file extensions!
2014-09-26 10:37:56 -04:00