No, you don't want this. The error handling in aug is atrocious, as is writing lenses for it. Never going to happen in ansible :)
lineinfile was designed to make it easier, and it's also why we have things like the INI module. On Wed, Jul 30, 2014 at 10:39 AM, Paul Tötterman <paul.totter...@gmail.com> wrote: > Right now, I'd use 'command' or 'shell' to call sed or awk to accomplish >> this. But is there a way to massage ansible into doing this? >> > > Augeas could probably be used (< > http://augeas.net/docs/references/lenses/files/pam-aug.html>), but I > guess there's no ansible module for augeas yet. > > Cheers, > Paul > > -- > You received this message because you are subscribed to the Google Groups > "Ansible Project" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to ansible-project+unsubscr...@googlegroups.com. > To post to this group, send email to ansible-project@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/76ac16ae-5c6d-44de-9711-519e975560d0%40googlegroups.com > <https://groups.google.com/d/msgid/ansible-project/76ac16ae-5c6d-44de-9711-519e975560d0%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CA%2BnsWgzQFbnxrNT3Q80H_Mu67uLw8ZUoqDntRGy_3iyWHYWa6A%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.