Ansible script for Password less SSH

Hi can we create new user and will give sudo access and for that user can we do password was SSH by using Ansible script, if yes please suggest I am able to create user and provided sudo privileges but unable to do password less SSH? Please help thanks inadvance