It's an Ansible collection with roles to install libvirt and Qemu.
** For now, tested only by amd64 hosts running Debian.
tchecode.kvm_qemu.install
: Install libvirt and Qemutchecode.kvm_qemu.network
: Configure a virtual networktchecode.kvm_qemu.pool
: Create a storage pooltchecode.kvm_qemu.reset
: Reset all changes made by this collection
More info about these roles can be found in roles/{role}
folder.
Define your inventory in hosts
file:
192.168.99.30
Create your playbook site.yml
:
- hosts: all
user: ubuntu
become: true
gather_facts: false
roles:
- tchecode.kvm_qemu.install
Run the playbook:
ansible-playbook -i hosts site.yml
To revert all changes, you can call the role reset
. I Suggest another playbook, reset.yml
for example:
- hosts: all
user: user
become: true
roles:
- {role: reset, tags: [reset]}