Your reply, while correct, seems designed to shut down useful feedback. 
Perhaps you did not mean it that way.

I noted up front that:
>  The "correct" path is likely to use a template of a file
I'm aware that lineinfile has problems. Which is why I'm requesting 
feedback on how one might use it best.

For a lot of use cases lineinfile, is an immediately useful expedient step, 
with advantages that far outweigh it's disadvantages.
In the case I suggested, for example:
> adding a mailrelay statement for postfix's main.cf.

I have 6 different legacy versions of main.cf floating around, covering two 
different distributions. Doing it the correct way means:

1) Reading through each version to determine if there is something special 
about a given setup.
2) Researching the parts I do not fully understand
3) Determining which of the differing parts should be in the final version

That work is good work, but it's a lot of work. It's not unrealistic to 
suggest that's a week or more of work (postfix is pretty flexible, which 
translates to reading though a *lot* of options).
Most of those options don't really have a final "correct" setting. But I 
know up front what relayhost should be.


-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/808c8385-73e4-46c0-870f-3b098c16a344%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to