Below you can see a scenario that is using docker containers as test hosts.
When you run molecule test --scenario-name docker
the create
, converge
and
destroy
steps will be run one after another.
This example is using Ansible playbooks and it does not need any molecule plugins to run. You can fully control which test requirements you need to be installed.
{!../molecule/docker/molecule.yml!}
{!../molecule/docker/requirements.yml!}
{!../molecule/docker/create.yml!}
{!../molecule/docker/tasks/create-fail.yml!}
{!../molecule/docker/converge.yml!}
{!../molecule/docker/destroy.yml!}