Ansible role self-signed certificates creation ( molecule driven tests )

General module testing procedure

Export required variables

MOLECULE_EPHEMERAL_DIRECTORY="${PWD}/.molecule" 

export MOLECULE_EPHEMERAL_DIRECTORY

Launch molecule role testing commands

molecule create
molecule converge
molecule idempotence
molecule destroy

Launch complete molecule test

molecule test