Ansible 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. Enter your email I consent to receiving your weekly newsletter, DevOps'ish SUBSCRIBE   Most people on IRC (#ansible) tend to agree, lineinfile is not a very good module in practice....

September 6, 2016 · 3 min · Chris Short