Verified Commit b94de5bb authored by Florian Pritz's avatar Florian Pritz
Browse files

zabbix: Restart service when nginx-zabbix.pl changes



Signed-off-by: Florian Pritz's avatarFlorian Pritz <bluewind@xinu.at>
parent ec121e92
...@@ -33,9 +33,14 @@ ...@@ -33,9 +33,14 @@
with_items: with_items:
- systemd-units-failed.py - systemd-units-failed.py
- mysql-user-stats.pl - mysql-user-stats.pl
- nginx-zabbix.pl
- systemd-discover-accounting-units.py - systemd-discover-accounting-units.py
- name: Install helper scripts
copy: src=nginx-zabbix.pl dest=/usr/local/bin/nginx-zabbix.pl mode=0755 owner=root group=root
notify:
- restart nginx-zabbix.service
when: "'nginx' in group_names"
- name: copy nginx-zabbix.service - name: copy nginx-zabbix.service
copy: src=nginx-zabbix.service dest=/etc/systemd/system/nginx-zabbix.service owner=root group=root mode=0644 copy: src=nginx-zabbix.service dest=/etc/systemd/system/nginx-zabbix.service owner=root group=root mode=0644
notify: notify:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment