# Ansible testing using molecule in CICD

**URL:** <https://forum.ansible.com/t/ansible-testing-using-molecule-in-cicd/32619>\
**Category:** Ansible Project\
**Tags:** ansible-lint\
**Created:** [April 7, 2020, 12:38pm UTC](https://forum.ansible.com/t/ansible-testing-using-molecule-in-cicd/32619 "2020-04-07T12:38:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![JDM](https://avatars.discourse-cdn.com/v4/letter/j/90db22/32.png) [@JDM](https://forum.ansible.com/u/JDM)\
**Post date:** [April 7, 2020, 12:38pm UTC](https://forum.ansible.com/t/ansible-testing-using-molecule-in-cicd/32619/1 "2020-04-07T12:38:38Z")

</div>

Hi All,  
We are planning to use a molecule for testing the ansible roles and  
We are going to use Ansible roles for application deployments on tomcat/apache servers. I am doing manual testing using a molecule command create.,lint , destroy verify …  
But has any one used molecule in CICD pipeline, that is ,

The **first stage** to test the ansible roles on docker images if all the tests are verified and successful. then **second stage** is ansible will deploy the application on actual servers ???

Has someone tried this , Is it recommended to keep molecule in the pipeline ? Any inputs will be help full…

Thanks guys,…  
JDM
