mirror of
https://gitlab.archlinux.org/archlinux/infrastructure.git
synced 2025-01-18 08:06:16 +01:00
26 lines
749 B
YAML
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
|