Updates to the lineinfile method to work around the new ansible error