Automated testing for Ansible roles with Molecule

250 views
Skip to first unread message

Borys Borysenko

unread,
Dec 29, 2015, 3:23:26 AM12/29/15
to Ansible Project
Hello,

A few weeks ago I have discovered an excellent tool named molecule that really simplify testing of Ansible roles. I guess it's really worth to try! 

Molecule is designed to aid in the development and testing of Ansible roles including support for multiple instances, operating system distributions, virtualization providers and test frameworks.
 
It leverages Vagrant to manage virtual machines, with support for multiple Vagrant providers (currently VirtualBox and OpenStack). Molecule supports Serverspec or Testinfra to run tests. Molecule uses an Ansible playbook (playbook.yml), to execute the role and its tests.


There is also a short intro from 2015 OpenStack Summit Tokyo - Best practices for TDD Ansible and OpenStack deployment.

Regards,
Borys

chris meyers

unread,
Dec 31, 2015, 11:52:56 AM12/31/15
to Ansible Project
I'm trying to figure out how/if this is better than using an Ansible vagrant module.
Reply all
Reply to author
Forward
0 new messages