Testing Ansible code example. Follow these medium posts:
- Part 1 - Test Environment Automation (master branch)
- Part 2 - Writing Tests (testinfra branch)
-
Ansible (Tested on
2.12.2
) -
Docker (Tested on
20.10.10
) -
Vagrant (Tested on
2.2.6
) -
Molecule (Tested on
3.5.2
):pip install 'molecule[docker]' ansible-lint molecule-vagrant
molecule create -s docker
molecule lint -s docker
molecule converge -s docker
molecule verify -s docker
molecule idempotence -s docker
molecule destroy -s docker
OR use molecule test -s docker
instead.