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

Add handler for service restart

This commit is contained in:
L3D 2020-06-30 18:27:37 +02:00 committed by L3D
parent 563941e82f
commit d2e228bb03
No known key found for this signature in database
GPG key ID: 5215C3441797AB2B
4 changed files with 11 additions and 1 deletions

7
handlers/main.yml Normal file
View file

@ -0,0 +1,7 @@
---
- name: systemctl restart grafana-kiosk.service
become: true
systemd:
state: restarted
name: grafana-kiosk.service
daemon_reload: yes

View file

@ -12,6 +12,7 @@
dest: /etc/grafana-kiosk/config.yml
mode: 0644
backup: true
notify: systemctl restart grafana-kiosk.service
- name: deploy systemd file
become: true
@ -21,3 +22,4 @@
mode: 0664
owner: root
group: root
notify: systemctl restart grafana-kiosk.service

View file

@ -18,3 +18,4 @@
group: root
mode: 0755
force: true
notify: systemctl restart grafana-kiosk.service

View file

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