There is no snap module for ansible yet. A snap module has been merged into git master version of Ansible as of October 2018. The earliest it will land in stable will be version 2.8
You can install snap packages by using the command module.
- name: install heroku cli via snap
command: snap install heroku --classic