Command Line Reference¶
This action has cleanup and is not enabled by default. See the provisioner's documentation for further details.
converge : Converge will execute the sequence necessary to converge the instances.
- create ** driver
- destroy ** all, parallel, driver
- prepare ** force
- test - ** - Test command will execute the sequence necessary to test the instances.
--parallel / --no-parallel¶
Passing extra arguments to the provisioner¶
molecule init scenario¶
List command shows information about current scenarios.
Matrix will display the subcommand's ordered list of actions, which can be changed in scenario configuration.
Test sequence commands¶
We can tell Molecule to create an instance with:
We can verify that Molecule has created the instance and they're up and running with:
Now, let's add a task to our role under
tasks/main.yml file like so:
We can then tell Molecule to test our role against our instance with:
If we want to manually inspect the instance afterward, we can run:
We now have a free hand to experiment with the instance state.
Finally, we can exit the instance and destroy it with:
If Molecule reports any errors, it can be useful to pass the
option to get more verbose output.