Brian Coca
9b8470ae95
minor doc fixes
9 years ago
Jeff Widman
fd6518179b
Move validate command into doc fragment and fix a few typos
9 years ago
Brian Coca
13116d8ac0
Merge pull request #839 from gimoh/patch-1
...
Do not insert extra newline if line already contains it
10 years ago
Greg DeKoenigsberg
2a5f0bde87
Proper author info for all remaining modules
10 years ago
jaypei
823adbbe36
use the right way to unescape line string
...
Reference https://github.com/ansible/ansible/issues/10864
10 years ago
Toshio Kuratomi
4b44aa4799
Fix use of codecs.escape_decode()
10 years ago
Toshio Kuratomi
142760658f
Slightly more future-proof version of the lineinfile fix
10 years ago
Toshio Kuratomi
2eafbdd63a
Merge branch 'fix-lineinfile' of https://github.com/jaypei/ansible-modules-core into jaypei-fix-lineinfile
10 years ago
Toshio Kuratomi
493144e06c
Correct lineinfile documentation about double quoting... Hasn't been the case for years.
10 years ago
jaypei
fb34842a05
use the right way to unescape line string
...
Reference https://github.com/ansible/ansible/issues/10864
10 years ago
Toshio Kuratomi
559af8d88d
Clarify the documented behaviour of insertbefore slightly.
10 years ago
Toshio Kuratomi
8ec43e5bbc
Merge pull request #411 from p-tr0/devel
...
Fix behavior when insert* doesn't match anything
10 years ago
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.
10 years ago
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
10 years ago
Piotr Gosławski
a5b1a599e2
update docs for insertbefore/insertafter
10 years ago
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.
10 years ago
Eric
87dd3afc91
Fix lineinfile documentation typo
10 years ago
James Cammarata
cb69744bce
Adding file doc fragment to those modules in files/ missing it
10 years ago
Michael DeHaan
1c2995d71f
Merge pull request #77 from major/suggest-selinux-enforcing
...
Updating SELinux example doc in lininefile module
10 years ago
Eric Hanchrow
cc0a38d268
Tweak docs to mention `replace`
10 years ago
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>
10 years ago
Michael DeHaan
c8e1a2077e
file extensions!
10 years ago