Make systemd default target configurable
This commit is contained in:
@@ -627,8 +627,9 @@
|
|||||||
changed_when: false
|
changed_when: false
|
||||||
check_mode: false
|
check_mode: false
|
||||||
|
|
||||||
- set_fact:
|
- name: define systemd default target
|
||||||
default_target: multi-user.target
|
set_fact:
|
||||||
|
default_target: "{{ machine.system_default_target|default('multi-user.target') }}"
|
||||||
|
|
||||||
- name: set systemd boot target
|
- name: set systemd boot target
|
||||||
command: systemctl set-default {{ default_target }}
|
command: systemctl set-default {{ default_target }}
|
||||||
|
|||||||
Reference in New Issue
Block a user