On Sat, Nov 07, 2015 at 02:18:40AM +, Edward Ned Harvey (lopser) wrote:
> > From: Brandon Allbery [mailto:allber...@gmail.com]
> >
> > I'm thinking the problem is that it is allowing any character to match [^#]
> > ---
> > including newline, which you likely do not expect. Try [^#\n] instead.
Op 7 nov. 2015 16:37 schreef "Dan Ritter" :
>
> On Sat, Nov 07, 2015 at 02:18:40AM +, Edward Ned Harvey (lopser)
wrote:
> > > From: Brandon Allbery [mailto:allber...@gmail.com]
> > >
> > > I'm thinking the problem is that it is allowing any character to
match [^#] ---
> > > including newline, w
On 2015-11-07 08:31, Dan Ritter wrote:
>
> Let me suggest that editing files in place is a really finicky
> operation, and it would be better to do something like:
Ansible modules typically have an option to make backups of the file they
modify.
> Even better is to not be in this situation in
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 orig
On Sat, Nov 7, 2015 at 6:26 PM, Josh Smift wrote:
> Cfengine and probably Puppet too (I've forgotten
> whether Puppet, at the time I was using it, could edit files like this).
>
I think it eventually did sprout that capability although they strongly
resisted it for a long time.
--
brandon s al
On Sat, 7 Nov 2015 18:29:37 -0500
Brandon Allbery wrote:
> On Sat, Nov 7, 2015 at 6:26 PM, Josh Smift wrote:
>
> > Cfengine and probably Puppet too (I've forgotten
> > whether Puppet, at the time I was using it, could edit files like this).
> >
>
> I think it eventually did sprout that capabil
Brandon Allbery writes:
> On Sat, Nov 7, 2015 at 6:26 PM, Josh Smift wrote:
>
> Cfengine and probably Puppet too (I've forgotten
> whether Puppet, at the time I was using it, could edit files like this).
>
> I think it eventually did sprout that capability although they strongly
>