Nick Shobe
d1ebf7fcf1
Update lineinfile
11 years ago
James Cammarata
9564818e1e
Merge branch 'fix_lineinfile_newlines' into devel
11 years ago
James Cammarata
48dbb79fbe
Merge branch 'issue_5679_lineinfile' into fix_lineinfile_newlines
11 years ago
Norman J. Harman Jr
3770813cc0
lineinfile supports symlinks.
11 years ago
Ahti Kitsik
1caf9be109
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
c24956032d
unified calls to fs function vs duplicate functions for file and
...
directory
11 years ago
James Cammarata
a18f4b6230
Merge branch 'devel' of https://github.com/jjshoe/ansible into jjshoe-devel
11 years ago
Joel Schuweiler
5bad971873
Finish reverting #b73cddc
11 years ago
jjshoe
a34478d6f3
Ensure the validation string has %s in it
11 years ago
James Cammarata
567f3819b1
Fixing newline escapes in lineinfile
...
Fixes #5679
11 years ago
James Cammarata
b73cddc485
Revert "Fix #5679 again after recent changes in core"
...
This reverts commit 2bfaacd170
.
Fixes #6821
11 years ago
cgtx
f6abc17e8a
backreferences should be double escaped
11 years ago
Robert Wehner
8a19d31391
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
2bfaacd170
Fix #5679 again after recent changes in core
11 years ago
James Cammarata
2157880029
Adding the backup destination to the resut dictionary for lineinfile
11 years ago
Michael DeHaan
30611eaac5
Merge pull request #6036 from mxxcon/patch-1
...
docs_pull_request: Add parameters highlighting
11 years ago
mxxcon
4e4be3edc0
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
012e3ae206
Fixes #5679 : lineinfile ignores newline in line argument
11 years ago
James Tanner
ad837709bd
Addresses #5023 Fix import comments
11 years ago
James Tanner
6000d636b3
Fixes #5023 Convert all modules to use new snippet import pattern
11 years ago
James Tanner
aaa44f9151
Add doc example for lineinfile without a regexp parameter
11 years ago
James Tanner
6694b28d51
Fix merge conflict
11 years ago
Jon Kolb
ba7d05222a
Fixes #3847 : lineinfile without regex
11 years ago
Joshua Kehn
cc0c908cee
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
93336ce00d
Merge branch 'devel' of https://github.com/volker48/ansible into volker48-devel
11 years ago
James Cammarata
4a30bac78b
Corrected example for lineinfile due to ': ' on line
...
Closes #3992
11 years ago
Marcus McCurdy
46ff02bc57
Makes pervious lineinfile fix more explicit
11 years ago
Marcus McCurdy
64fa95ca11
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
5c69918d53
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
04aa74ddf1
lineinfile example: /etc/host[s]
...
Change a lineinfile example from /etc/host to /etc/hosts
12 years ago
Nicolas Grilly
75ceb80572
Escape args injected in new style modules
12 years ago
Brian Coca
3d568db0c9
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
391fb98ee2
Allow modules to be categorized, and also sort them when generating the documentation.
12 years ago