There are many materials which describes how to use ansible for deploying cloudstack on the internet:
http://docs.cloudstack.apache.org/en/latest/ansible.html
https://dsonstebo.wordpress.com/2015/01/22/apache-cloudstack-ansible-playbook/
http://thehyperadvisor.com/2014/02/18/automating-apache-cloudstack-deployments-with-ansible/
These tutorials describes well on how to deploy cloudstack using ansible, we refers to them and generated our own playbooks.