blockinfile - Insert/update/remove a text block surrounded by marker lines ¶ See also https://docs.ansible.com/ansible/latest/blockinfile_module.html replace - Replace all instances of a particular string in a file using a back-referenced regular expression lineinfile - Ensure a particular line is in a file, or replace an existing line using a back-referenced regular expression Synopsis ¶ This module will insert/update/remove a block of multi-line text surrounded by customizable marker lines