tldr/pages/common/molecule.md

29 lines
416 B
Markdown
Raw Normal View History

2019-08-04 08:54:07 +01:00
# molecule
> Molecule helps testing Ansible roles.
2019-08-04 08:54:07 +01:00
> More information: <https://molecule.readthedocs.io>.
- Create a new Ansible role:
2019-08-04 08:54:07 +01:00
`molecule init role --role-name {{role_name}}`
- Run tests:
`molecule test`
- Start the instance:
`molecule create`
- Configure the instance:
`molecule converge`
2023-05-16 17:56:29 +01:00
- List scenarios of the instance:
`molecule matrix converge`
- Log in into the instance:
2019-08-04 08:54:07 +01:00
`molecule login`