snippetbashTip
molecule — Molecule helps testing Ansible roles. More information: <https://docs.ansible.com/projects/molecule/
Viewed 0 times
ansiblecommandhelpsclimoleculerolestesting
Problem
How to use the
molecule command: Molecule helps testing Ansible roles. More information: <https://docs.ansible.com/projects/molecule/usage/>.Solution
molecule — Molecule helps testing Ansible roles. More information: <https://docs.ansible.com/projects/molecule/usage/>.Create a new Ansible role:
molecule init role --role-name {{role_name}}Run tests:
molecule testStart the instance:
molecule createConfigure the instance:
molecule convergeList scenarios of the instance:
molecule matrix convergeLog in into the instance:
molecule loginCode Snippets
Create a new Ansible role
molecule init role --role-name {{role_name}}Run tests
molecule testStart the instance
molecule createConfigure the instance
molecule convergeList scenarios of the instance
molecule matrix convergeContext
tldr-pages: common/molecule
Revisions (0)
No revisions yet.