Skip to content

Commit

Permalink
README updated
Browse files Browse the repository at this point in the history
  • Loading branch information
stafwag committed Feb 27, 2022
1 parent 98e8315 commit 6321490
Showing 1 changed file with 28 additions and 3 deletions.
31 changes: 28 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,34 @@ The role is a wrapper around the following roles:
* **stafwag.virt_install_import**:
[https://github.com/stafwag/ansible-role-virt_install_import](https://github.com/stafwag/ansible-role-virt_install_import)

Install the required roles with
# Installation

## Ansible galaxy

The role is available on [Ansible Galaxy](https://galaxy.ansible.com/stafwag/virt_install_import).

To install the role from Ansible Galaxy execute the command below.
This will install the role with the dependencies.

```bash
$ ansible-galaxy install stafwag.virt_install_import
```

## Source Code

If you want to use the source code directly.

Clone the role source code.

```bash
$ git clone https://github.com/stafwag/ansible-role-virt_install_vm
```

and put into the [role search path](https://docs.ansible.com/ansible/2.4/playbooks_reuse_roles.html#role-search-path)

Install the required roles with

```bash
$ ansible-galaxy install -r requirements.yml
```

Expand Down Expand Up @@ -104,7 +129,7 @@ for each virtual machine.

* **debian_vm_template.yml:**

```
```yaml
qemu_img:
dest: "/var/lib/libvirt/images/{{ vm.hostname }}.qcow2"
format: qcow2
Expand Down Expand Up @@ -155,7 +180,7 @@ virt_install_import:
Playbook to setup a virtual machine:
```
```yaml
- name: Install tstdebian2
hosts: kvmhost
become: true
Expand Down

0 comments on commit 6321490

Please sign in to comment.