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:
parent
35a81cdd60
commit
5475d7d178
3 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue