1
0
Fork 0
mirror of https://github.com/roles-ansible/role-grafana-kiosk.git synced 2024-08-16 10:09:49 +02:00

try to get it started

This commit is contained in:
L3D 2020-06-30 18:56:31 +02:00 committed by L3D
parent 4497bd3b4d
commit 179c8e073a
No known key found for this signature in database
GPG key ID: 5215C3441797AB2B
4 changed files with 8 additions and 3 deletions

View file

@ -23,6 +23,7 @@ grafana_kiosk:
URL: https://play.grafana.org
ignore_certificate_errors: false
enable_systemd: true
display: DISPLAY=:0
# perform basic versionscheck?

View file

@ -5,4 +5,4 @@
state: restarted
name: grafana-kiosk.service
daemon_reload: yes
enabled: grafana_kiosk.enable_systemd | bool
enabled: "{{ grafana_kiosk.enable_systemd | bool }}"

View file

@ -7,7 +7,10 @@ After=network.target
[Service]
User={{ grafana_kiosk.user }}
Environment="DISPLAY=:0"
Environment="{{ grafana_kiosk.display }}"
{% if not grafana_kiosk.general.autofit | bool -%}
Enviroment="KIOSK_AUTOFIT={{ grafana_kiosk.general.autofit | ternary("true", "false") }}"
{%- endif %}
Environment="XAUTHORITY=/home/{{ grafana_kiosk.user }}/.Xauthority"
ExecStart=/usr/bin/grafana-kiosk -c /etc/grafana-kiosk/config.yml

View file

@ -22,6 +22,7 @@ _grafana_kiosk:
URL: https://play.grafana.org
ignore_certificate_errors: false
enable_systemd: true
display: DISPLAY=:0
_dl_matrix:
'x86_64': "grafana-kiosk.linux.amd64"
@ -30,5 +31,5 @@ _dl_matrix:
'armv6l': "grafana-kiosk.linux.armv6"
'armv5l': "grafana-kiosk.linux.armv5"
playbook_version_number: 10 # should be an integer
playbook_version_number: 11 # should be an integer
playbook_version_path: 'role-grafana-kiosk_roles-ansible_github.com.version' # unique string