diff --git a/.github/workflows/ansible-debian-buster.yml b/.github/workflows/ansible-debian-buster.yml index a7650ad..20a750a 100644 --- a/.github/workflows/ansible-debian-buster.yml +++ b/.github/workflows/ansible-debian-buster.yml @@ -14,3 +14,4 @@ jobs: uses: roles-ansible/check-ansible-debian-buster-action@master with: targets: "./" + vars: "grafana_kiosk:\n manage_systemd: false" diff --git a/LICENSE b/LICENSE index 3bdf835..a9731f3 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,7 @@ MIT License -Copyright (c) 2020 L3D +Copyright (c) 2020 L3D +Copyright (c) 2020 L3D and and contributors Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/defaults/main.yml b/defaults/main.yml index 469e873..9e5cb9b 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -22,7 +22,7 @@ grafana_kiosk: playlist: false URL: https://play.grafana.org ignore_certificate_errors: false - enable_systemd: true + manage_systemd: true display: DISPLAY=:0 lightdm_autologin: false diff --git a/handlers/main.yml b/handlers/main.yml index 131d46b..8ae8894 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -5,4 +5,5 @@ state: restarted name: grafana-kiosk.service daemon_reload: yes - enabled: "{{ grafana_kiosk.enable_systemd | bool }}" + enabled: true + when: grafana_kiosk.manage_systemd | bool diff --git a/tasks/config.yml b/tasks/config.yml index 87bf240..072f888 100644 --- a/tasks/config.yml +++ b/tasks/config.yml @@ -22,6 +22,7 @@ mode: 0664 owner: root group: root + when: grafana_kiosk.manage_systemd | bool notify: systemctl restart grafana-kiosk.service - name: deploy env vars