-
Notifications
You must be signed in to change notification settings - Fork 2
/
install-virt.yml
54 lines (47 loc) · 1.64 KB
/
install-virt.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#* This playbook wrapps the apt (and others maybe in the future..) module
#* to install software for virtualization via KVM.
#* Note: this playbook should be used either from the main install playbook
#* (which resolves its dependencies) or as a shorthand for an already set up
#* system, where the dependencies are already provided.
#* Use '-a' to pass parameters to ansible (as '-e'). See ansible fetch for
#* details.
#* No arguments are mandatory.
- hosts: host.KVM
become: True
roles:
- inofix.yapkg
vars:
- yapkg__task_group_name: 'netcat'
- yapkg__names:
- 'netcat-openbsd'
- hosts: host.KVM_host, &os.debian
become: True
roles:
- { role: inofix.yapkg, when: 'ansible_virtualization_role == "host"' }
vars:
- yapkg__task_group_name: 'libvirt hypervisor part I'
- yapkg__names:
- 'virtinst'
- hosts: host.KVM_host, &os.debian_jessie
become: True
roles:
- { role: inofix.yapkg, when: 'ansible_virtualization_role == "host"' }
vars:
- yapkg__task_group_name: 'libvirt hypervisor part II (<stretch)'
- yapkg__names:
- 'libvirt-bin'
- hosts: os.debian_stretch, os.debian_buster, os.debian_bullseye, os.debian_bookworm, &host.KVM_host, &host.Metal
become: True
roles:
- { role: inofix.yapkg, when: 'ansible_virtualization_role == "host"' }
vars:
- yapkg__task_group_name: 'libvirt hypervisor part II (>stretch)'
- yapkg__names:
- 'libvirt-daemon-system'
# not enabling this yet, as it only tracks 'today'
# it is only useful for human communication and needs
# to be combined with something smarter as
# dpkg --get-selections
#- hosts: all
# roles:
# - track-packages