Set nameserver in /etc/resolv.conf.
Everything is in the tasks/main.yml file.
tasks/main.yml
Main variables are :
nameservers