DR> Even better is to not be in this situation in the first place, by
DR> deploying all the config via generation from version-controlled
DR> management systems.
YD> You typically modify files with ansible when say you install a new
YD> package and you want to change just a few lines from the original,
YD> which is often better with upgrades etc...
Yeah, and this isn't an Ansible-specific problem, I've had to think about
the same things with Cfengine and probably Puppet too (I've forgotten
whether Puppet, at the time I was using it, could edit files like this).
Editing is nice so you keep the parts that *you* aren't editing when
something *else* (like an upgrade) changes them. Copying is nice so you
have total control over the file. It depends a little on whether you
*want* other things to be changing the file without you noticing, or not
really. And I think in general the answer is "it depends".
-Josh ([email protected])
_______________________________________________
Tech mailing list
[email protected]
https://lists.lopsa.org/cgi-bin/mailman/listinfo/tech
This list provided by the League of Professional System Administrators
http://lopsa.org/