James Cammarata
68295b05b4
Merge branch 'fix_lineinfile_newlines' into devel
2014-06-23 12:38:12 -05:00
James Cammarata
4adf2c4dfd
Merge branch 'issue_5679_lineinfile' into fix_lineinfile_newlines
2014-06-20 00:19:35 -05:00
Norman J. Harman Jr
0f4aa34da2
lineinfile supports symlinks.
2014-06-19 17:38:34 -05:00
Ahti Kitsik
6341cc23fb
Bugfix to lineinfile to properly handle files with no newline at EOF when using insertafter=EOF.
...
Looks like #6881 is also affected by this bug.
Currently when using lineinfile insertafter=EOF for a file that has no newline then the added line is not prefixed with a newline.
As a concrete example, ubuntu distro default /etc/ssh/sshd_config has no newline so lineinfile module cannot be used to add a new line to the end of the file.
2014-06-09 19:58:45 +03:00
Brian Coca
ac14a8d6ad
unified calls to fs function vs duplicate functions for file and
...
directory
2014-05-24 09:28:45 -04:00
James Cammarata
7faf766305
Merge branch 'devel' of https://github.com/jjshoe/ansible into jjshoe-devel
2014-05-09 00:31:39 -05:00
Joel Schuweiler
aed596088b
Finish reverting #b73cddc
2014-04-27 09:36:13 -05:00
jjshoe
6f0808b23b
Ensure the validation string has %s in it
2014-04-27 09:30:36 -05:00
James Cammarata
8f325afe38
Fixing newline escapes in lineinfile
...
Fixes #5679
2014-04-08 11:42:29 -05:00
James Cammarata
7a03cc69e1
Revert "Fix #5679 again after recent changes in core"
...
This reverts commit 2bfaacd170
.
Fixes #6821
2014-04-07 09:55:59 -05:00
cgtx
bb3fed67aa
backreferences should be double escaped
2014-03-29 18:14:56 -05:00
Robert Wehner
406317371b
Update 'validate=' parameter documentation to make clear that the command
...
passed via this paramter is not passed via shell and so all shell features
will not work.
2014-03-24 09:06:25 -06:00
Jakub Jirutka
f39b8cae95
Fix #5679 again after recent changes in core
2014-03-12 18:21:53 +01:00
James Cammarata
d80b9ac137
Adding the backup destination to the resut dictionary for lineinfile
2014-02-20 13:31:54 -05:00
Michael DeHaan
62f8ebe51e
Merge pull request #6036 from mxxcon/patch-1
...
docs_pull_request: Add parameters highlighting
2014-02-18 13:58:44 -05:00
mxxcon
544c08a211
docs_pull_request: Add parameters highlighting
...
Added highlighting to parameter references in docs so that they standout a bit better.
2014-02-15 23:26:21 -05:00
Jakub Jirutka
ec80066cee
Fixes #5679 : lineinfile ignores newline in line argument
2014-01-19 02:24:26 +01:00
James Tanner
4f9aadcc07
Addresses #5023 Fix import comments
2013-12-02 15:13:49 -05:00
James Tanner
38edad70ac
Fixes #5023 Convert all modules to use new snippet import pattern
2013-12-02 15:11:23 -05:00
James Tanner
39fdb934be
Add doc example for lineinfile without a regexp parameter
2013-11-06 18:51:31 -05:00
James Tanner
3ae95c8953
Fix merge conflict
2013-11-06 18:38:01 -05:00
Jon Kolb
0e2478e639
Fixes #3847 : lineinfile without regex
2013-10-23 21:04:18 -04:00
Joshua Kehn
a20f477e64
Added validate option to lineinfile
...
The validate option is constructed similarly to the template command's
validate option. TestRunner.py has been updated to include two new
tests, one for passing and one for failing validation.
2013-10-06 13:51:27 -04:00
James Cammarata
ff2b87f350
Merge branch 'devel' of https://github.com/volker48/ansible into volker48-devel
2013-09-23 21:24:43 -05:00
James Cammarata
1c1c103d93
Corrected example for lineinfile due to ': ' on line
...
Closes #3992
2013-09-05 20:37:54 -05:00
Marcus McCurdy
249dc38527
Makes pervious lineinfile fix more explicit
2013-09-02 16:16:45 -04:00
Marcus McCurdy
e16b9aa3a0
Improves lineinfile's error checking
...
Line in file would raise a TypeError exception if
the 'line' key was in params, but its value was None.
2013-09-02 11:14:40 -04:00
Jan-Piet Mens
3404a0fc16
DOCS: standardize on EXAMPLES (a.k.a. Docs-JumboPatch JetLag Edition)
...
Migrated all examples: in DOCUMENTATION=''' string to standalone EXAMPLES=''' string
Added deprecation warning to moduledev.rst and remove deprecated example from it
Fixed up a few typos and uppercased some acronyms.
add consistency to how EXAMPLES are formatted
2013-06-15 20:54:25 +02:00
Lorin Hochstein
b116045220
lineinfile example: /etc/host[s]
...
Change a lineinfile example from /etc/host to /etc/hosts
2013-06-05 13:54:37 -04:00
Nicolas Grilly
b2f5db97bd
Escape args injected in new style modules
2013-05-24 01:01:07 +02:00
Brian Coca
d5128ee30e
changed lininfile to be safer by writing to temp file and moving into place
...
instead of writing directly to original
Signed-off-by: Brian Coca <briancoca+dev@gmail.com>
2013-05-07 22:08:29 -04:00
Michael DeHaan
cd97a4cb14
Allow modules to be categorized, and also sort them when generating the documentation.
2013-04-28 15:03:45 -04:00