Commit Graph

10 Commits (084dc38fbe0a8f1945192fc322b7a34f98979062)

Author SHA1 Message Date
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