Commit Graph

15 Commits (048044375929be53c7a0ec34903eec8bf21ff5f7)

Author SHA1 Message Date
Michael DeHaan 8d3f73d562 pep8 fixes 12 years ago
Serge van Ginderachter 8a823acf20 Fix typo 12 years ago
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.
12 years ago
Jan-Piet Mens d069c57974 Reformat code: examples consistently
- added terse syntax to modules.rst
 - added description of special variables to template module
12 years ago
Dag Wieers 580197f197 Use the standard 'dest' option for target files, make 'name' an alias 12 years ago
Michael DeHaan 2f14545f2c Merge pull request #1170 from jpmens/docspatch01
Jumbo DOCUMENTATION patch
12 years ago
Jan-Piet Mens a790c399f4 Added attribution to all module DOCUMENTATION strings 12 years ago
Jan-Piet Mens c78a0a4a49 Jumbo DOCUMENTATION patch 12 years ago
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.
12 years ago
Jan-Piet Mens 78c04b2cd8 Added DOCUMENTATION to lineinfile module 12 years ago
Michael DeHaan 3276c2f0c4 lineinfile should use 'search' everywhere 12 years ago
Michael DeHaan 9998d2985c Line in file regexep should match a portion of the line, not the whole line! 12 years ago
Michael DeHaan 4223442992 backuplocal => backup_local for API standardization reasons 12 years ago
Daniel Hokka Zakrisson 25b34ddb60 Add backups to lineinfile 12 years ago
Daniel Hokka Zakrisson 61bc4bc0ed Add a lineinfile module 12 years ago