From d6da86e7117f5625223aec387d413ae9eaaa24b3 Mon Sep 17 00:00:00 2001 From: Stefan Haun Date: Wed, 3 Jan 2024 20:24:58 +0100 Subject: [PATCH] Remove old kiosk setup from hobbes --- host-hobbes.yml | 61 ------------------------------------------------- 1 file changed, 61 deletions(-) diff --git a/host-hobbes.yml b/host-hobbes.yml index 7db081c..c5b9895 100644 --- a/host-hobbes.yml +++ b/host-hobbes.yml @@ -19,11 +19,6 @@ # This is needed for the user-executed tasks - acl # Regular packages - - lightdm - - accountsservice - - unclutter - - lxde - - chromium-browser - rng-tools - name: Remove the screensavers @@ -53,9 +48,6 @@ ### Kiosk setup - # - # https://github.com/grafana/grafana-kiosk - - name: Ensure kiosk user is there ansible.builtin.user: name: "{{ kiosk_user }}" @@ -63,57 +55,4 @@ append: yes - - name: Create bin directory - file: - path: "/home/{{ kiosk_user }}/bin" - owner: "{{ kiosk_user }}" - mode: '0755' - state: directory - - - name: Download grafana-kiosk - ansible.builtin.get_url: - url: "https://github.com/grafana/grafana-kiosk/releases/download/{{ kiosk_software_version }}/grafana-kiosk.linux.{{ kiosk_software_arch }}" - dest: "/home/{{ kiosk_user }}/bin/grafana-kiosk" - mode: '0755' - force: no - - - - name: Setup autologin in lightdm - ansible.builtin.blockinfile: - path: /etc/lightdm/lightdm.conf - block: | - [Seat:seat0] - autologin-user = pi - autologin-user-timeout = 0 - autologin-in-background = False - - - name: Remove autostart - # None of the things in autostart are needed or wanted - ansible.builtin.file: - path: /etc/xdg/lxsession/LXDE/autostart - state: absent - - - - name: Add systemd service - ansible.builtin.template: - src: templates/hobbes/grafana-kiosk.service.j2 - dest: /etc/systemd/system/grafana-kiosk.service - owner: root - group: root - mode: '0644' - - - name: Enable and start kiosk service - ansible.builtin.service: - name: grafana-kiosk.service - enabled: true - state: started - - - name: Set default systemd target to graphical - ansible.builtin.file: - src: /lib/systemd/system/graphical.target - dest: /etc/systemd/system/default.target - state: link - force: yes - - handlers: