@operation
def replace(state, host, name, match, replace, flags=None):

    return [sed_replace(state, name, match, replace, flags=flags)]
A simple shortcut for replacing text in files with sed.
dataset/ETHPy150Open Fizzadar/pyinfra/pyinfra/modules/files.py/replace