1
1
mirror of https://gitlab.archlinux.org/archlinux/infrastructure.git synced 2025-01-18 08:06:16 +01:00
infrastructure/roles/libvirt/tasks/main.yml
Evangelos Foutras 47c448826a
libvirt: add QEMU packages needed for virtio video
This was a bit of trial and error (testing with the arch-boxes project.)
2023-08-24 22:07:58 +03:00

26 lines
749 B
YAML

---
- name: Remove iptables to solve iptables<->iptables-nft conflict
pacman: name=iptables force=yes state=absent
- name: Install libvirt and needed optional dependencies
pacman:
state: present
name:
- dnsmasq
- iptables-nft
- libvirt
- qemu-base
- qemu-hw-display-virtio-gpu
- qemu-hw-display-virtio-vga
register: result
- name: Reload firewalld
service: name=firewalld state=reloaded
when: result.changed
- name: Autostart default network on boot
file: src=/etc/libvirt/qemu/networks/default.xml dest=/etc/libvirt/qemu/networks/autostart/default.xml state=link owner=root group=root
- name: Start and enable libvirtd
systemd: name=libvirtd enabled=yes state=started daemon_reload=yes