Re: [ansible-project] Re: lineinfile Best Practice?

2015-10-21 Thread Javier Palacios
Hello Josef, you might have a look to the augeas role. I've not used it with ansible but with puppet, and if you are changing a standard configuration file is probably the best approach. Even if you don't want to use the role, use augeas with a 'command' might also help Javier Palacios On Tue, O

[ansible-project] Re: lineinfile Best Practice?

2015-10-20 Thread Josef Fortier
Hi Esco: On Tuesday, October 20, 2015 at 3:31:11 PM UTC-5, esco real wrote: could you explain what exactly the problem is here? Maybe posting some examples with actual/ and expected results? Nothing insurmountable. Just trying to formulate in my own mind what works the best. I was/am able to wo

[ansible-project] Re: lineinfile Best Practice?

2015-10-20 Thread esco real
Hello Josef, could you explain what exactly the problem is here? Maybe posting some examples with actual/ and expected results? I have different relay hosts in main.cf, too. I just use a var per group and lineinfile to set relay and didn't have a problem with that. esco -- You received this