ansible/molecule

RFE: Introduce the `--include` `--exclude` command line parameter for scenario filtering

cidrblock opened this issue · 2 comments

As a user I want to specifc molecule run all scenarios, except certain ones.

Use cases:

  • This would allow for one scenario to be dedicated to the creation, preparation, verification, and distruction of infrastructure

Example:

Assume we have introduced the ability to share state and invetory between scenarios.
Assume the default scenarion is responsible for provisioning.

# create the infrstructure, shared state, shared inventory and verify it is viable using the default scneario
molecule create
molecule preprare
molecule verify

# run all other scenarios (their destroy is removed from test)
molecule test --all-except default

# destroy the shared infrastructure and invetory
molecule destroy

Long term there may be a way to offer these steps (canned) with a higher level construct above the scenario level at the collleciton level