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

improve path and syntax of env and service

This commit is contained in:
L3D 2020-07-02 18:25:47 +02:00 committed by L3D
parent 35a81cdd60
commit 5475d7d178
No known key found for this signature in database
GPG key ID: 5215C3441797AB2B
3 changed files with 4 additions and 4 deletions

View file

@ -28,7 +28,7 @@
become: true
template:
src: templates/grafana-kiosk.env.j2
dest: "/home/{{ grafana_kiosk.user }}/.grafana-kiosk.env"
dest: /etc/grafana-kiosk/.grafana-kiosk.env
mode: 0755
owner: "{{ grafana_kiosk.user }}"
notify: systemctl restart grafana-kiosk.service

View file

@ -9,10 +9,10 @@ User={{ grafana_kiosk.user }}
Restart = always
RestartSec=5s
Type=simple
EnvironmentFile=/home/{{ grafana_kiosk.user }}/.grafana-kiosk.env
EnvironmentFile=/etc/grafana-kiosk/.grafana-kiosk.env
ExecStart=/bin/bash -c "
{%- if not grafana_kiosk.general.autofit | bool -%}
KIOSK_AUTOFIT={{ grafana_kiosk.general.autofit | ternary("true", "false") }}{{ '; '}}
KIOSK_AUTOFIT={{ grafana_kiosk.general.autofit | ternary("true", "false") }}{{ ' '}}
{%- endif -%}
/usr/bin/grafana-kiosk -c /etc/grafana-kiosk/config.yml"

View file

@ -32,5 +32,5 @@ _dl_matrix:
'armv6l': "grafana-kiosk.linux.armv6"
'armv5l': "grafana-kiosk.linux.armv5"
playbook_version_number: 14 # should be an integer
playbook_version_number: 15 # should be an integer
playbook_version_path: 'role-grafana-kiosk_roles-ansible_github.com.version' # unique string