Ansible does not contain a curl module. If you were to use the shell, command, or script module to issue a curl command, the following warning would be displayed. As this warning suggests, the get_url module can be used to download files from a remote system.
[WARNING]: Consider using the get_url or uri module rather than running 'curl'. If you need to use command because get_url or uri is insufficient you can add 'warn: false' to this command task or set 'command_warnings=False' in ansible.cfg to get rid of this message.