Testing Ansible with Molecule AND Travis
At one point I was restarting all my ansible roles to include testing with molecule. Then I realized I could test with github and Travis-ci which was also cool. Then I finally realized that I can do both, but use the same tests.
Basically, this will look like:
- build out a role locally
- test locally in various OSes (in containers) locally with molecule
- then push to github and perform the same tests once pushed (CI)
This is sort of based on https://werner-dijkerman.nl/2017/09/05/using-molecule-v2-to-test-ansible-roles/
just testing an update and push to github