how to replace windows style line endings with linux in the replace task?

I tried this, but doesnt seem to work

- name: Fix line endings from CRLF to LF
  local_action: replace dest={{my_dir}}/conf/{{item}} regexp='\r\n' replace='\n'

Hi,