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: