From 92a000d007a24129a5858b6749dabd99250c3871 Mon Sep 17 00:00:00 2001 From: olli Date: Wed, 19 Oct 2022 11:42:35 +0200 Subject: [PATCH] boot graphical with lightdm --- kodi.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/kodi.yml b/kodi.yml index 45c74f6..8671b07 100644 --- a/kodi.yml +++ b/kodi.yml @@ -73,6 +73,20 @@ notify: - Restart lightdm + - name: 'add lightdm to startup' + command: systemctl enable signal-cli + args: + creates: /etc/systemd/system/multi-user.target.wants/lightdm.service + + - name: "Get current systemd default" + command: "systemctl get-default" + changed_when: false + register: systemdefault + + - name: "Set default to graphical target" + command: "systemctl set-default graphical.target" + when: "'graphical' not in systemdefault.stdout" + handlers: