Skip to content

Commit 517ae2c

Browse files
Merge pull request #2 from andreygubarev/feature-examples
add examples docs
2 parents a3f1f6d + 7370305 commit 517ae2c

File tree

1 file changed

+34
-2
lines changed

1 file changed

+34
-2
lines changed

README.md

+34-2
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,48 @@
22

33
Molecule QEMU driver for testing Ansible roles.
44

5-
## Installation
5+
## Usage
6+
7+
```bash
8+
pip install molecule-qemu
9+
```
10+
11+
## Dependencies
612

713
```bash
814
brew install qemu cdrtools
915
```
1016

17+
## Example scenario
18+
```bash
19+
molecule init scenario scenario_name -d molecule-qemu
20+
```
21+
22+
## Example `molecule.yml`
23+
```yaml
24+
---
25+
dependency:
26+
name: galaxy
27+
driver:
28+
name: molecule-qemu
29+
platforms:
30+
- name: instance-1
31+
vm_image: ~/Downloads/debian-11-generic-amd64.qcow2
32+
vm_ssh_port: 10022
33+
- name: instance-2
34+
vm_image: ~/Downloads/debian-11-generic-amd64.qcow2
35+
vm_ssh_port: 10023
36+
37+
provisioner:
38+
name: ansible
39+
verifier:
40+
name: ansible
41+
```
42+
1143
# Cloud Images
1244
1345
* [Ubuntu](https://cloud-images.ubuntu.com/)
14-
* [Debian](https://cdimage.debian.org/cdimage/openstack/current/)
46+
* [Debian](https://cloud.debian.org/images/cloud/)
1547
1648
# Reference
1749

0 commit comments

Comments
 (0)