blob: 59768f166379daba1ef8b9e51629a98e78c1e8a9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
- name: "install virtualisation tooling"
apt:
name:
- qemu-kvm
- virtinst
- virt-manager
- libvirt-daemon-system
- libvirt-clients
- libnss-libvirt
- name: "enable nested KVM if possible"
copy:
src: kvm-nested.conf
dest: /etc/modprobe.d/kvm-nested.conf
- name: "add libvirt_guest to /etc/nsswitch.conf"
shell: |
if awk '$1 == "hosts:" && !/libvirt_guest/' /etc/nsswitch.conf | grep .
then
sed -i '/hosts:/s/files /files libvirt_guest /' /etc/nsswitch.conf
fi
|