2021-09-05 00:09:34 +02:00
|
|
|
---
|
|
|
|
- name: remove iptables to solve iptables<->iptables-nft conflict
|
|
|
|
pacman: name=iptables force=yes state=absent
|
|
|
|
|
|
|
|
- name: install libvirt and needed optional dependencies
|
2022-07-23 15:04:19 +02:00
|
|
|
pacman: name=libvirt,qemu-base,dnsmasq,iptables-nft state=present
|
2021-09-05 00:09:34 +02:00
|
|
|
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
|