Select Git revision
README.md 1.06 KiB
ansible molecule tests for role: dependencies
Why to use it
It's allways a good idea to test your things.
With ansible molecule you can test your role locally without the need of using a real server but a local docker container.
Dependencies
-
You need to have ansible molecule installed.
-
For using the tests, you will to have docker installed locally and and set it for using DIND (docker in docker)
{ "exec-opts": ["native.cgroupdriver=systemd"], "features": { "buildkit": true }, "experimental": true, "cgroup-parent": "docker.slice" }
-
Configuration
There's not much for configuring for using the tests
Running the tests
For running the molecule tests you just need to run the command:
molecule test
Here you can find how to run the