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
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 commitif 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