Subsystem sftp /usr/lib/openssh/sftp-server
- name: Change ssh-config
replace:
path: /etc/ssh/sshd_config
regexp: '^#?Subsystem *sftp *\/usr\/lib\/openssh\/sftp-server'
replace: '#Subsystem sftp /usr/lib/openssh/sftp-server'
'^#?Subsystem.*sftp.*\/usr\/lib\/openssh\/sftp-server'