2019-08-04 08:54:07 +01:00
|
|
|
# molecule
|
|
|
|
|
2021-08-15 18:59:09 +01:00
|
|
|
> Molecule helps testing Ansible roles.
|
2019-08-04 08:54:07 +01:00
|
|
|
> More information: <https://molecule.readthedocs.io>.
|
|
|
|
|
2021-08-15 18:59:09 +01:00
|
|
|
- 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`
|
|
|
|
|
2021-05-14 01:42:15 +01:00
|
|
|
- Log in into the instance:
|
2019-08-04 08:54:07 +01:00
|
|
|
|
|
|
|
`molecule login`
|