ansible/lib
jfpanisset 1814af9f34 Document lineinfile regexp gotcha (#47912)
You typically want the lineinfile module to operate in an indempotent way, similar to using "sed -i", so your regexp needs to match the line to edit both before and after the edit, otherwise on a second run the regexp will no longer match the original text line and you will end up with a second copy of the replacement line at the top/bottom of the file.
2018-11-01 10:38:45 -04:00
..
ansible Document lineinfile regexp gotcha (#47912) 2018-11-01 10:38:45 -04:00