Skip to content

Using Tags with Molecule

Using Tags with Molecule

CLI Tags

To provide tags to molecule via cli commands, you can you the --tags option. Note however, that you have to pass this option after the -- separator.

Terminal window
molecule converge -s <scenario> -- --tags <tag>

Tags via molecule.yml

You can also define tags in the molecule.yml file.

provisioner:
name: ansible
config_options:
tags:
run: rebuild