Make systemd default target configurable

This commit is contained in:
2025-10-10 23:27:06 +02:00
parent 21e015a0c2
commit 79ffc5858e

View File

@@ -627,8 +627,9 @@
changed_when: false
check_mode: false
- set_fact:
default_target: multi-user.target
- name: define systemd default target
set_fact:
default_target: "{{ machine.system_default_target|default('multi-user.target') }}"
- name: set systemd boot target
command: systemctl set-default {{ default_target }}