Files
community.general/lib/ansible/modules/files
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
..
2016-12-08 11:22:22 -05:00
2017-08-15 23:12:08 -07:00
2018-09-04 09:06:57 -05:00