28 lines
593 B
YAML
28 lines
593 B
YAML
- name: Install QEMU/KVM
|
|
apt:
|
|
name: qemu-kvm
|
|
state: present
|
|
|
|
- name: Install Libvirt
|
|
apt:
|
|
name: ["libvirt-clients", "libvirt-daemon-system"]
|
|
state: present
|
|
|
|
- name: Add users to libvirt group
|
|
user:
|
|
name: "{{ item }}"
|
|
groups: libvirt
|
|
append: yes
|
|
with_items: "{{ libvirt_users }}"
|
|
when: libvirt_users is defined
|
|
|
|
- name: Download GNU/Linux ISOs
|
|
get_url:
|
|
url: "{{ item.url }}"
|
|
dest: /var/lib/libvirt/images
|
|
checksum: "{{ item.hash }}"
|
|
owner: libvirt-qemu
|
|
group: libvirt-qemu
|
|
loop: "{{ libvirt_isos }}"
|
|
when: libvirt_isos is defined
|