1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/library
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.
2012-10-30 17:57:15 +01:00
..
apt Reformat code: examples consistently 2012-10-23 15:14:01 +02:00
apt_repository Reformat code: examples consistently 2012-10-23 15:14:01 +02:00
assemble Reformat code: examples consistently 2012-10-23 15:14:01 +02:00
async_status Various performance streamlining and making the file features usable in all modules without daisy chaining. 2012-10-20 22:55:09 -04:00
async_wrapper whitespace + remove deprecated YAML parser (migration script lives in examples/scripts and warning was added 2012-08-06 20:07:02 -04:00
authorized_key When atomically replacing files, copy attributes 2012-10-25 21:40:05 -04:00
command Make sure we always return 'rc' from the command module 2012-10-26 15:02:03 +02:00
copy When atomically replacing files, copy attributes 2012-10-25 21:40:05 -04:00
cron Reformat code: examples consistently 2012-10-23 15:14:01 +02:00
debug module_formatter: .rst now correctly handles code examples 2012-10-18 13:49:19 +02:00
easy_install Reformat code: examples consistently 2012-10-23 15:14:01 +02:00
facter Erroneous space in facter documentation. 2012-10-18 01:20:40 +01:00
fail Reformat code: examples consistently 2012-10-23 15:14:01 +02:00
fetch Reformat code: examples consistently 2012-10-23 15:14:01 +02:00
file Reformat code: examples consistently 2012-10-23 15:14:01 +02:00
fireball Reformat code: examples consistently 2012-10-23 15:14:01 +02:00
get_url Reformat code: examples consistently 2012-10-23 15:14:01 +02:00
git Reformat code: examples consistently 2012-10-23 15:14:01 +02:00
group Reformat code: examples consistently 2012-10-23 15:14:01 +02:00
ini_file Reformat code: examples consistently 2012-10-23 15:14:01 +02:00
lineinfile Add option create= to lineinfile module 2012-10-30 17:57:15 +01:00
mail typo 2012-10-16 14:40:35 +02:00
mount mount: update example with mandatory option 2012-10-23 15:49:47 +02:00
mysql_db Reformat code: examples consistently 2012-10-23 15:14:01 +02:00
mysql_user - removed space escapes from MySQL SHOW GRANTS regex 2012-10-24 15:02:54 +02:00
nagios Reformat code: examples consistently 2012-10-23 15:14:01 +02:00
ohai Jumbo DOCUMENTATION patch 2012-10-01 09:18:54 +02:00
pause Reformat code: examples consistently 2012-10-23 15:14:01 +02:00
ping various small doc tweaks 2012-10-02 22:43:46 -04:00
pip Reformat code: examples consistently 2012-10-23 15:14:01 +02:00
postgresql_db Reformat code: examples consistently 2012-10-23 15:14:01 +02:00
postgresql_user Reformat code: examples consistently 2012-10-23 15:14:01 +02:00
raw Added attribution to all module DOCUMENTATION strings 2012-10-01 12:37:51 +02:00
script Added 'script', a module that can push and insantly run a remote script. Replaces the need to copy+command. 2012-10-20 12:12:07 -04:00
seboolean Reformat code: examples consistently 2012-10-23 15:14:01 +02:00
selinux Resolve traceback when python-selinux is not installed 2012-10-24 18:57:24 +02:00
service Reformat code: examples consistently 2012-10-23 15:14:01 +02:00
setup fixed but in pulling data from dmesg command, wrong function to use as file for for loop 2012-10-16 18:44:09 -04:00
shell Reformat code: examples consistently 2012-10-23 15:14:01 +02:00
slurp module docs for slurp 2012-09-30 16:58:15 +02:00
subversion Reformat code: examples consistently 2012-10-23 15:14:01 +02:00
supervisorctl Reformat code: examples consistently 2012-10-23 15:14:01 +02:00
template Reformat code: examples consistently 2012-10-23 15:14:01 +02:00
user Merge pull request #1455 from bleader/devel 2012-10-25 18:26:58 -07:00
virt Reformat code: examples consistently 2012-10-23 15:14:01 +02:00
wait_for Reformat code: examples consistently 2012-10-23 15:14:01 +02:00
yum fix removal case where first pkg in a list is not installed at all 2012-10-29 13:48:20 -04:00