Ansible error "Missing sudo password"

While executing the ansible playbook I get error as

msg: "Missing sudo password"

I have given the user credentials in the job template as well.

Check if the user which is mentioned in the job credentials is part of the sudoers file. This is required as it needs permission to sudo into the domain account directory.