Nick Shobe
e553e24d0a
Update lineinfile
11 years ago
James Cammarata
68295b05b4
Merge branch 'fix_lineinfile_newlines' into devel
11 years ago
James Cammarata
4adf2c4dfd
Merge branch 'issue_5679_lineinfile' into fix_lineinfile_newlines
11 years ago
Norman J. Harman Jr
0f4aa34da2
lineinfile supports symlinks.
11 years ago
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.
11 years ago
Brian Coca
ac14a8d6ad
unified calls to fs function vs duplicate functions for file and
...
directory
11 years ago
James Cammarata
7faf766305
Merge branch 'devel' of https://github.com/jjshoe/ansible into jjshoe-devel
11 years ago
Joel Schuweiler
aed596088b
Finish reverting #b73cddc
11 years ago
jjshoe
6f0808b23b
Ensure the validation string has %s in it
11 years ago
James Cammarata
8f325afe38
Fixing newline escapes in lineinfile
...
Fixes #5679
11 years ago
James Cammarata
7a03cc69e1
Revert "Fix #5679 again after recent changes in core"
...
This reverts commit 2bfaacd170
.
Fixes #6821
11 years ago
cgtx
bb3fed67aa
backreferences should be double escaped
11 years ago
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.
11 years ago
Jakub Jirutka
f39b8cae95
Fix #5679 again after recent changes in core
11 years ago
James Cammarata
d80b9ac137
Adding the backup destination to the resut dictionary for lineinfile
11 years ago
Michael DeHaan
62f8ebe51e
Merge pull request #6036 from mxxcon/patch-1
...
docs_pull_request: Add parameters highlighting
11 years ago
mxxcon
544c08a211
docs_pull_request: Add parameters highlighting
...
Added highlighting to parameter references in docs so that they standout a bit better.
11 years ago
Jakub Jirutka
ec80066cee
Fixes #5679 : lineinfile ignores newline in line argument
11 years ago
James Tanner
4f9aadcc07
Addresses #5023 Fix import comments
11 years ago
James Tanner
38edad70ac
Fixes #5023 Convert all modules to use new snippet import pattern
11 years ago
James Tanner
39fdb934be
Add doc example for lineinfile without a regexp parameter
11 years ago
James Tanner
3ae95c8953
Fix merge conflict
11 years ago
Jon Kolb
0e2478e639
Fixes #3847 : lineinfile without regex
11 years ago
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.
11 years ago
James Cammarata
ff2b87f350
Merge branch 'devel' of https://github.com/volker48/ansible into volker48-devel
11 years ago
James Cammarata
1c1c103d93
Corrected example for lineinfile due to ': ' on line
...
Closes #3992
11 years ago
Marcus McCurdy
249dc38527
Makes pervious lineinfile fix more explicit
11 years ago
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.
11 years ago
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
12 years ago
Lorin Hochstein
b116045220
lineinfile example: /etc/host[s]
...
Change a lineinfile example from /etc/host to /etc/hosts
12 years ago
Nicolas Grilly
b2f5db97bd
Escape args injected in new style modules
12 years ago
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>
12 years ago
Michael DeHaan
cd97a4cb14
Allow modules to be categorized, and also sort them when generating the documentation.
12 years ago