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:
parent
563941e82f
commit
d2e228bb03
4 changed files with 11 additions and 1 deletions
7
handlers/main.yml
Normal file
7
handlers/main.yml
Normal file
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
- name: systemctl restart grafana-kiosk.service
|
||||
become: true
|
||||
systemd:
|
||||
state: restarted
|
||||
name: grafana-kiosk.service
|
||||
daemon_reload: yes
|
|
@ -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
|
||||
|
|
|
@ -18,3 +18,4 @@
|
|||
group: root
|
||||
mode: 0755
|
||||
force: true
|
||||
notify: systemctl restart grafana-kiosk.service
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue