tldr/pages/common/molecule.md

25 lines
353 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`
- Log in into the instance:
2019-08-04 08:54:07 +01:00
`molecule login`