mirror of
https://github.com/fscotto/infra.git
synced 2026-05-31 07:49:57 +00:00
Add KVM and virt-manager to Void desktop
This commit is contained in:
@@ -75,14 +75,17 @@ profile_packages:
|
|||||||
- alacritty
|
- alacritty
|
||||||
- bluez
|
- bluez
|
||||||
- blueman
|
- blueman
|
||||||
|
- bridge-utils
|
||||||
- celluloid
|
- celluloid
|
||||||
- chromium
|
- chromium
|
||||||
- deluge-gtk
|
- deluge-gtk
|
||||||
|
- dnsmasq
|
||||||
- emacs-gtk3
|
- emacs-gtk3
|
||||||
- exo
|
- exo
|
||||||
- fontconfig-devel
|
- fontconfig-devel
|
||||||
- freetype-devel
|
- freetype-devel
|
||||||
- gufw
|
- gufw
|
||||||
|
- libvirt
|
||||||
- libspa-bluetooth
|
- libspa-bluetooth
|
||||||
- libreoffice
|
- libreoffice
|
||||||
- liberation-fonts-ttf
|
- liberation-fonts-ttf
|
||||||
@@ -94,6 +97,10 @@ profile_packages:
|
|||||||
- nerd-fonts-symbols-ttf
|
- nerd-fonts-symbols-ttf
|
||||||
- pdfarranger
|
- pdfarranger
|
||||||
- playerctl
|
- playerctl
|
||||||
|
- qemu
|
||||||
|
- qemu-firmware
|
||||||
|
- qemu-img
|
||||||
|
- qemu-tools
|
||||||
- remmina
|
- remmina
|
||||||
- ristretto
|
- ristretto
|
||||||
- rsync
|
- rsync
|
||||||
@@ -101,6 +108,8 @@ profile_packages:
|
|||||||
- terminus-font
|
- terminus-font
|
||||||
- Thunar
|
- Thunar
|
||||||
- thunar-volman
|
- thunar-volman
|
||||||
|
- virt-manager
|
||||||
|
- virt-manager-tools
|
||||||
- wireplumber
|
- wireplumber
|
||||||
- xarchiver
|
- xarchiver
|
||||||
- xournalpp
|
- xournalpp
|
||||||
|
|||||||
@@ -56,6 +56,51 @@
|
|||||||
line: "password optional pam_gnome_keyring.so use_authtok"
|
line: "password optional pam_gnome_keyring.so use_authtok"
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
|
- name: Check whether libvirt service directory exists
|
||||||
|
tags: [packages, services]
|
||||||
|
ansible.builtin.stat:
|
||||||
|
path: /etc/sv/libvirtd
|
||||||
|
register: libvirtd_service_dir
|
||||||
|
|
||||||
|
- name: Enable libvirt daemon service
|
||||||
|
tags: [packages, services]
|
||||||
|
ansible.builtin.file:
|
||||||
|
src: /etc/sv/libvirtd
|
||||||
|
dest: /var/service/libvirtd
|
||||||
|
state: link
|
||||||
|
when: libvirtd_service_dir.stat.exists
|
||||||
|
|
||||||
|
- name: Check virtualization group availability
|
||||||
|
tags: [packages]
|
||||||
|
ansible.builtin.getent:
|
||||||
|
database: group
|
||||||
|
key: "{{ item }}"
|
||||||
|
loop:
|
||||||
|
- kvm
|
||||||
|
- libvirt
|
||||||
|
loop_control:
|
||||||
|
label: "{{ item }}"
|
||||||
|
register: desktop_virtualization_group_state
|
||||||
|
failed_when: false
|
||||||
|
|
||||||
|
- name: Add desktop user to virtualization groups
|
||||||
|
tags: [packages]
|
||||||
|
ansible.builtin.user:
|
||||||
|
name: "{{ username }}"
|
||||||
|
groups: "{{ item }}"
|
||||||
|
append: true
|
||||||
|
loop: >-
|
||||||
|
{{
|
||||||
|
desktop_virtualization_group_state.results
|
||||||
|
| default([])
|
||||||
|
| selectattr('failed', 'equalto', false)
|
||||||
|
| selectattr('ansible_facts.getent_group', 'defined')
|
||||||
|
| map(attribute='item')
|
||||||
|
| list
|
||||||
|
}}
|
||||||
|
loop_control:
|
||||||
|
label: "{{ item }}"
|
||||||
|
|
||||||
- name: Ensure emptty log directory exists
|
- name: Ensure emptty log directory exists
|
||||||
tags: [packages, services, emptty]
|
tags: [packages, services, emptty]
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
|
|||||||
Reference in New Issue
Block a user