This is an Ansible role to install, configure and test Virt-Lightning.
Virt-Lightning can quickly deploy new virtual machines using libvirt
. It also prepares the Ansible inventory file.
Following tasks will be executed by the role:
- Install the virt-lightning dependencies including
git
,libvirt
,python
modules,rsync
(some are distribution specific). - Configure libvirt on the system.
- Create the virt-lightning environment in
~/virt-lightning
. - Configure virt-lightning (
~/.config/virt-lightning/config.ini
). - Prepare an image
- Test that virt-lightning is able to create, run, and destroy a virtual machine.
None.
- Skip the tests (default to false):
virt_lightning_run_tests: true
- Configure the URI of the Qemu system:
virt_lightning_qemu_uri: qemu:///system
None.
- hosts: servers
vars_files:
- vars/main.yml
roles:
- { role: virt-lightning/ansible-role-virt-lightning }
Apache License 2.0
This role was created in 2019 by Goneri Le Bouder and the virt-lightning team.