Michael DeHaan
5f829f9926
Add versionadded element to new option, fix YAML formatting
12 years ago
Yves Dorfsman
83ce1b2dc5
Modified to follow Daniel Hokka Zakrisson's recommendations.
12 years ago
Yves Dorfsman
4de1b4e8a9
Added an insertbefore option.
12 years ago
Hubert Feyrer
e2158b661d
Add Linux-style path for sudoers file, to be consistent with other examples.
12 years ago
Hubert Feyrer
d4b9de643b
Add an example on how to *add* a %wheel line to sudo - tricky as it has
...
a colon, which needs some special attention.
12 years ago
Michael DeHaan
27ff22610d
Fix lineinfile docs formatting
12 years ago
Yves Dorfsman
05a3876dc9
Clarification on how to use insertafter with a regex.
12 years ago
jkleint
d732b25828
Clarify that lineinfile uses Python regexes.
12 years ago
Jan-Piet Mens
caf003c813
DOCUMENTATION strings
12 years ago
Michael DeHaan
663a8fef3f
chmod -x for all module files in source checkout
12 years ago
Brian Coca
5ea260f44b
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>
12 years ago
Michael DeHaan
c0747b7baa
pep8 fixes
12 years ago
Serge van Ginderachter
47d882f374
Fix typo
12 years ago
Dag Wieers
1e3dcfce4b
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.
12 years ago
Jan-Piet Mens
feab57e270
Reformat code: examples consistently
...
- added terse syntax to modules.rst
- added description of special variables to template module
12 years ago
Dag Wieers
70b063ce0e
Use the standard 'dest' option for target files, make 'name' an alias
12 years ago
Michael DeHaan
6600f7b7ac
Merge pull request #1170 from jpmens/docspatch01
...
Jumbo DOCUMENTATION patch
12 years ago
Jan-Piet Mens
a72a6e42c5
Added attribution to all module DOCUMENTATION strings
12 years ago
Jan-Piet Mens
e620fed755
Jumbo DOCUMENTATION patch
12 years ago
Michael DeHaan
83f277cfe6
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.
12 years ago
Jan-Piet Mens
5a75433ce9
Added DOCUMENTATION to lineinfile module
12 years ago
Michael DeHaan
565f336182
lineinfile should use 'search' everywhere
12 years ago
Michael DeHaan
14a9c3ab9e
Line in file regexep should match a portion of the line, not the whole line!
12 years ago
Michael DeHaan
aa704a6111
backuplocal => backup_local for API standardization reasons
12 years ago
Daniel Hokka Zakrisson
2a8b92954f
Add backups to lineinfile
12 years ago
Daniel Hokka Zakrisson
ed8e31d618
Add a lineinfile module
12 years ago