zaxos / tomcat-ansible-role

Ansible role to install and configure Apache Tomcat on CentOS/RHEL
GNU General Public License v2.0
38 stars 109 forks source link

Add molecule testing #8

Closed pescobar closed 5 years ago

pescobar commented 5 years ago

sorry if the PR is too big...I started doing some small changes and it growed too much ;)

I plan to use this role for my deployments and I added molecule for testing. With this PR you can do molecule test in the root folder of the role to do syntax checking and run the role in a docker container. It also checks idempotence. Btw I fixed the permissions tasks so they are idempotent. check this commit

if you add a travis config file like this one you would get automated executing of the molecule testing in travis. https://github.com/pescobar/ansible-role-dehydrated/blob/master/.travis.yml . I didn't want to apply that change to don't change your current config