Preparing an Ansible role to be distributed can be time consuming and error prone. Ideally, you should test it against many versions of Ansible and many operating system versions. However, doing this is time consuming.
Enter the Ansible Role Tester.
In its simplest form, you simply add this to your CI script after making sure that docker and bundler are available:
wget -O- bit.ly/ansibletest | sh