Remove old kiosk setup from hobbes
This commit is contained in:
parent
1b775762d1
commit
d6da86e711
1 changed files with 0 additions and 61 deletions
|
@ -19,11 +19,6 @@
|
||||||
# This is needed for the user-executed tasks
|
# This is needed for the user-executed tasks
|
||||||
- acl
|
- acl
|
||||||
# Regular packages
|
# Regular packages
|
||||||
- lightdm
|
|
||||||
- accountsservice
|
|
||||||
- unclutter
|
|
||||||
- lxde
|
|
||||||
- chromium-browser
|
|
||||||
- rng-tools
|
- rng-tools
|
||||||
|
|
||||||
- name: Remove the screensavers
|
- name: Remove the screensavers
|
||||||
|
@ -53,9 +48,6 @@
|
||||||
|
|
||||||
|
|
||||||
### Kiosk setup
|
### Kiosk setup
|
||||||
#
|
|
||||||
# https://github.com/grafana/grafana-kiosk
|
|
||||||
|
|
||||||
- name: Ensure kiosk user is there
|
- name: Ensure kiosk user is there
|
||||||
ansible.builtin.user:
|
ansible.builtin.user:
|
||||||
name: "{{ kiosk_user }}"
|
name: "{{ kiosk_user }}"
|
||||||
|
@ -63,57 +55,4 @@
|
||||||
append: yes
|
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:
|
handlers:
|
||||||
|
|
Loading…
Reference in a new issue