/molecule-example

Example repository for molecule tests

Molecule test-role

Molecule example to testing a simple role.

Requirements:

  • Python 3.7
  • Virtualenv

How to:

  1. Create a virtualenv:

virtualenv -p python3.7 .venv

  1. Activate

source .venv/bin/activate

  1. Install requirements

pip install -r requirements.txt

  1. Deactivate
  2. Activate again to get all dependencies

After that you will be able to create your own role inside the roles directory using

molecule init role my-role-name

Molecule using guide

© Alejandro Bejarano Gómez. 2020.