Enables the services of the selected package groups and adds the regular users to the groups those packages create.
packages_selected_groups, computed by the playbook's group selection.become: true).| Variable | Default | Description |
|---|---|---|
package_services_by_group | see below | Units to enable and start, by OS family and package group. |
package_services_device_requirements | bluetooth.service needs hci* | Units enabled only when a matching entry exists under path. |
package_services_user_groups_by_group | see below | System groups that the users join, by OS family and package group. |
package_services_group_users | the SSH user | Users added to those groups. |
package_services_unit_directory | /usr/lib/systemd/system | Where the unit files are looked up. |
Default units on Arch Linux:
| Group | Units |
|---|---|
01_base | bluetooth.service, fstrim.timer, paccache.timer |
04_printers | cups.socket |
12_containers_docker | docker.socket |
20_apps | fwupd-refresh.timer |
fstrim.timer trims the mounted filesystems once a week. paccache.timer keeps the last three versions of each package in the pacman cache. Debian and Fedora packages usually enable their own services.
Default groups on Arch Linux: realtime with 01_base, for the real-time scheduling limits of realtime-privileges that PipeWire uses, and plugdev with 25_razer, which OpenRazer's udev rule gives the device.
A unit whose file is missing is reported instead of enabled. An enabled unit stays enabled. bluetooth.service is skipped, with a message, when the host has no Bluetooth controller (no hci* entry in /sys/class/bluetooth). A group that does not exist yet is reported. Log in again to use a new group.
When the play installs or updates cachyos-ananicy-rules, the role restarts ananicy-cpp so the new rules load.
None.
- hosts: all
become: true
roles:
- role: package_services
tags: [package_services]Unlicense
pad