lineinfile be damned

The Ansible lineinfile module is designed to search a file for a line, and ensure that it is present or absent. lineinfile is very effective at that particular task. However, when the line has to be in a certain place or before or after a certain line, lineinfile becomes a hassle to manage. (adsbygoogle = window.adsbygoogle || []).push({}); Most people on IRC (#ansible) tend to agree, lineinfile is not a very good module in practice. [Read More]