Enable gdm without starting it during provisioning

Add enabled_services_only list to services_systemd role for services that
should be enabled at boot but not started immediately. Move gdm to this list
on Arch to avoid starting the display manager mid-provisioning.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Fabio Scotto di Santolo
2026-05-13 10:43:40 +02:00
parent 238d8ab873
commit 224e9bf1e8
2 changed files with 12 additions and 1 deletions

View File

@@ -129,10 +129,12 @@ enabled_services:
- avahi-daemon - avahi-daemon
- bluetooth - bluetooth
- cups - cups
- gdm
- libvirtd - libvirtd
- ufw - ufw
enabled_services_only:
- gdm
desktop_systemd_user_services: desktop_systemd_user_services:
- syncthing.service - syncthing.service
- rclone-pcloud.service - rclone-pcloud.service

View File

@@ -18,3 +18,12 @@
loop: "{{ host_enabled_services | default([]) }}" loop: "{{ host_enabled_services | default([]) }}"
loop_control: loop_control:
label: "{{ item }}" label: "{{ item }}"
- name: Enable systemd services without starting them
tags: [services, packages]
ansible.builtin.systemd:
name: "{{ item }}"
enabled: true
loop: "{{ enabled_services_only | default([]) }}"
loop_control:
label: "{{ item }}"