RDS instance snapshot and restore

Hi All,
I am trying to create a playbook intend to create an RDS MySQL snapshot and then create a restore form the snapshot. I used the aws cli locally and it works but don’t know how to translate the commands in a ansible playbook. In my understanding Ansiblee use ssh but I can’t ssh the rds instance. Anybody can help me?

Thanks

Tony

The appropriate documentation is here:

http://docs.ansible.com/ansible/rds_module.html

And you can find best practices and a style guide here:

http://docs.ansible.com/ansible/playbooks_best_practices.html