desktop-config/roles/qemu-kvm/tasks/main.yml

28 lines
534 B
YAML
Raw Normal View History

2024-02-25 20:30:31 +01:00
- name: Install packages
2023-12-24 23:09:53 +01:00
become: yes
apt:
state: latest
install_recommends: false
name:
- qemu-kvm
- qemu-system
2024-02-25 20:30:31 +01:00
- qemu-utils
2023-12-24 23:09:53 +01:00
- libvirt-daemon
- libvirt-daemon-system
- ovmf
- virt-manager
- name: Ensure group "libvirt" exists
become: yes
ansible.builtin.group:
name: libvirt
state: present
- name: Add user to group "libvirt"
become: yes
ansible.builtin.user:
name: "{{ ansible_user_id }}"
state: present
groups:
- libvirt
append: true