Setup a Kiosk on hobbes to show Grafana screenshots
This commit is contained in:
parent
00110e8607
commit
676b8408f0
2 changed files with 27 additions and 5 deletions
|
@ -8,7 +8,6 @@
|
||||||
|
|
||||||
roles:
|
roles:
|
||||||
|
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: Install packages needed for the system
|
- name: Install packages needed for the system
|
||||||
# This is a list of all packages,
|
# This is a list of all packages,
|
||||||
|
@ -16,10 +15,9 @@
|
||||||
ansible.builtin.apt:
|
ansible.builtin.apt:
|
||||||
state: present
|
state: present
|
||||||
name:
|
name:
|
||||||
# This is needed for the user-executed tasks
|
- mosquitto-clients
|
||||||
- acl
|
- fbi
|
||||||
# Regular packages
|
|
||||||
- rng-tools
|
|
||||||
|
|
||||||
- name: Remove the screensavers
|
- name: Remove the screensavers
|
||||||
ansible.builtin.apt:
|
ansible.builtin.apt:
|
||||||
|
@ -54,5 +52,26 @@
|
||||||
groups: audio,plugdev,input,netdev
|
groups: audio,plugdev,input,netdev
|
||||||
append: yes
|
append: yes
|
||||||
|
|
||||||
|
- name: Install Kiosk script
|
||||||
|
ansible.builtin.template:
|
||||||
|
src: templates/hobbes/kiosk.sh.j2
|
||||||
|
dest: /usr/local/bin/kiosk.sh
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
mode: '0755'
|
||||||
|
|
||||||
|
- name: Add systemd service
|
||||||
|
ansible.builtin.copy:
|
||||||
|
src: files/hobbes/grafana-kiosk.service
|
||||||
|
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
|
||||||
|
|
||||||
handlers:
|
handlers:
|
||||||
|
|
|
@ -2,3 +2,6 @@
|
||||||
server_admin: "admin+hobbes@netz39.de"
|
server_admin: "admin+hobbes@netz39.de"
|
||||||
mac: "b8:27:eb:f9:43:43"
|
mac: "b8:27:eb:f9:43:43"
|
||||||
kiosk_user: pi
|
kiosk_user: pi
|
||||||
|
kiosk_mqtt_host: "mqtt.n39.eu"
|
||||||
|
kiosk_mqtt_topic: "Netz39/Things/HackingDashboard/Screenshot"
|
||||||
|
docker_data_root: "/srv/docker"
|
||||||
|
|
Loading…
Reference in a new issue