ansible remove part of line
# Use replace module to delete root ssh limitations. # Here, we are deleting ('') the matching regex text in a line. - name: Allow root access replace: path: ~/.ssh/authorized_keys regexp: '^no.*10".' replace: ''
Source: www.linuxtechi.com