0Pricing
Ansible Academy · Lesson

molecule init & the Scenario Layout

Scaffold a test harness for a role.

Scaffold a Test Harness

The molecule init command generates a ready-to-run test setup so you do not write boilerplate by hand.

Init Inside a Role

Run init from your role's root to add a scenario without touching your existing tasks or handlers.

molecule init scenario

All lessons in this course

  1. Why Test Infrastructure Code
  2. molecule init & the Scenario Layout
  3. Converge, Verify & the Test Matrix
  4. Idempotence & Lint in the Pipeline
← Back to Ansible Academy