Michael DeHaan
d96d16c0dc
Add versionadded element to new option, fix YAML formatting
2013-02-16 15:40:31 -05:00
Yves Dorfsman
1cc9fa0fc8
Modified to follow Daniel Hokka Zakrisson's recommendations.
2013-02-16 13:32:48 -05:00
Yves Dorfsman
fb933cb30c
Added an insertbefore option.
2013-02-16 13:32:48 -05:00
Hubert Feyrer
401d67a8ba
Add Linux-style path for sudoers file, to be consistent with other examples.
2013-02-13 22:02:17 +01:00
Hubert Feyrer
b5adbfbef4
Add an example on how to *add* a %wheel line to sudo - tricky as it has
...
a colon, which needs some special attention.
2013-02-13 21:42:12 +01:00
Michael DeHaan
83fcdff9aa
Fix lineinfile docs formatting
2013-02-09 14:34:03 -05:00
Yves Dorfsman
b0599ae2d9
Clarification on how to use insertafter with a regex.
2013-02-06 01:25:30 -07:00
jkleint
7c8fa2cb6f
Clarify that lineinfile uses Python regexes.
2012-12-20 11:41:45 -05:00
Jan-Piet Mens
d184f72aa9
DOCUMENTATION strings
2012-11-21 18:49:30 +01:00
Michael DeHaan
6f6559670f
chmod -x for all module files in source checkout
2012-11-19 13:47:40 -05:00
Brian Coca
924dc5006c
fix case in which file is created and backup is requested but fails, not it just doesn't attempt to backup the missing file
...
Signed-off-by: Brian Coca <briancoca+ansible@gmail.com>
2012-11-07 10:33:43 -05:00
Michael DeHaan
8d3f73d562
pep8 fixes
2012-10-30 20:42:07 -04:00
Serge van Ginderachter
8a823acf20
Fix typo
2012-10-30 19:43:22 +01:00
Dag Wieers
835d7d854e
Add option create= to lineinfile module
...
We use the lineinfile module to modify configuration files of a proprietary application. This application reads configuration options from files, but does not require those files to exist (if the default options are fine). However this application may modify the configuration file at will, so we cannot copy or template those files. And after a silent install the configuration may not exist (depending on the response file).
Whatever the case, during deployment we need to make sure some configuration options are set after the installation.
So the cleanest way to handle this situation is to allow the lineinfile module to create the file if it is missing (and this is the expected behavior). When I proposed this behavior, @sergevanginderachter needed the same functionality and was now working around it as well.
2012-10-30 17:57:15 +01:00
Jan-Piet Mens
d069c57974
Reformat code: examples consistently
...
- added terse syntax to modules.rst
- added description of special variables to template module
2012-10-23 15:14:01 +02:00
Dag Wieers
580197f197
Use the standard 'dest' option for target files, make 'name' an alias
2012-10-05 11:03:14 +02:00
Michael DeHaan
2f14545f2c
Merge pull request #1170 from jpmens/docspatch01
...
Jumbo DOCUMENTATION patch
2012-10-01 05:19:16 -07:00
Jan-Piet Mens
a790c399f4
Added attribution to all module DOCUMENTATION strings
2012-10-01 12:37:51 +02:00
Jan-Piet Mens
c78a0a4a49
Jumbo DOCUMENTATION patch
2012-10-01 09:18:54 +02:00
Michael DeHaan
5256ea7e75
Various tweaking to get the module formatter to work for 'make docs' in the docs project. Likely the templates for other module formatting types will have to change
...
by the time I'm done.
2012-09-27 21:06:31 -04:00
Jan-Piet Mens
78c04b2cd8
Added DOCUMENTATION to lineinfile module
2012-09-19 22:29:11 +02:00
Michael DeHaan
3276c2f0c4
lineinfile should use 'search' everywhere
2012-09-08 14:53:34 -04:00
Michael DeHaan
9998d2985c
Line in file regexep should match a portion of the line, not the whole line!
2012-09-07 21:03:59 -04:00
Michael DeHaan
4223442992
backuplocal => backup_local for API standardization reasons
2012-09-04 19:49:49 -04:00
Daniel Hokka Zakrisson
25b34ddb60
Add backups to lineinfile
2012-09-04 16:04:53 +02:00
Daniel Hokka Zakrisson
61bc4bc0ed
Add a lineinfile module
2012-08-30 00:07:58 +02:00