system/roles/wayland/tasks/main.yaml
Marty Oehme afac310f21
ref(roles): All roles use desired package state
By setting the `desired_package_state` variable we can change if ansible
should only ensure that the packages exist on the system (`present`) or
that they are also updated to their latest version (`latest`).
2025-03-13 11:24:14 +01:00

54 lines
1.3 KiB
YAML

- name: Install intel wayland drivers
community.general.xbps:
name:
- mesa-dri
state: "{{ desired_package_state | default('present') }}"
tags:
- intel
- drivers
- packages
- name: Install wayland packages
community.general.xbps:
name:
- dbus
- seatd
- turnstile
state: "{{ desired_package_state | default('present') }}"
tags:
- packages
- name: Activate wayland services
ansible.builtin.file:
force: "yes"
src: "/etc/sv/{{ item }}"
dest: "/etc/runit/runsvdir/default/{{ item }}"
state: link
with_items: [dbus, turnstiled, seatd]
- name: Set user service directory to $HOME/.local/state/service
ansible.builtin.copy:
src: runit.conf
dest: /etc/turnstile/backend/runit.conf
mode: 0644
- name: Install wlr desktop portals
community.general.xbps:
name:
- xdg-desktop-portal
- xdg-desktop-portal-wlr
state: "{{ desired_package_state | default('present') }}"
tags:
- packages
- desktop-portal
# required e.g. for sioyek to work in wayland void
- name: Install qt5 and qt6 wayland libraries
community.general.xbps:
name:
- qt5-wayland
- qt6-wayland
state: "{{ desired_package_state | default('present') }}"
tags:
- packages
- qt