An ansible role to install libvirt/KVM packages and enable the libvirtd service.
- Archlinux
- AlmaLinux
- Debian
- Centos
- Fedora
- RedHat
- Rocky
- Suse
- Ubuntu
-
install
All installation-related tasks are defined in the
install
playbook. This allows you to install the required packages and start/enable the required service withtasks_from
in theinclude_role
,import_role
, … ansible modules.See example below.
-
install
Install the required packages.
- name: Install libvirt
gather_facts: true
become: true
hosts: kvm_hosts
roles:
- role: stafwag.libvirt
---
- name: Install libvirt
gather_facts: true
hosts: all
become: true
tasks:
- name: Install the requirements
include_role:
name: "{{ item }}"
tasks_from:
install
with_items:
- stafwag.libvirt
MIT/BSD
Created by Staf Wagemakers, email: staf@wagemakers.be, personal website: https://www.wagemakers.be, my company: https://mask27.dev .