2023-07-16 17:37:33 +02:00
|
|
|
---
|
|
|
|
- name: "install libvirt"
|
|
|
|
ansible.builtin.apt:
|
|
|
|
name:
|
|
|
|
- "dnsmasq"
|
|
|
|
- "libvirt-daemon-system"
|
2023-09-30 23:44:40 +02:00
|
|
|
- "netcat-openbsd"
|
2023-07-16 17:37:33 +02:00
|
|
|
- "qemu-system"
|
|
|
|
install_recommends: false
|
|
|
|
|
|
|
|
- name: "install zfs storage driver for libvirt"
|
|
|
|
ansible.builtin.apt:
|
|
|
|
name:
|
|
|
|
- "libvirt-daemon-driver-storage-zfs"
|
|
|
|
when:
|
|
|
|
system_extra_libvirt_install_zfs_driver
|
|
|
|
|
|
|
|
- name: "enable libvirtd"
|
|
|
|
ansible.builtin.systemd:
|
|
|
|
name: "libvirtd"
|
|
|
|
enabled: true
|
|
|
|
|
|
|
|
- name: "add {{ system_extra_libvirt_user_name }} to group \"libvirt\""
|
|
|
|
ansible.builtin.user:
|
|
|
|
name: "{{ system_extra_libvirt_user_name }}"
|
|
|
|
groups: "libvirt"
|
|
|
|
append: true
|