added handler in case something in the config is changed, it will restart the service
This commit is contained in:
6
roles/zabbix_agent/handlers/main.yml
Normal file
6
roles/zabbix_agent/handlers/main.yml
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
- name: Restart zabbix-agent2
|
||||
ansible.builtin.systemd:
|
||||
name: zabbix-agent2
|
||||
state: restarted
|
||||
daemon_reload: true
|
||||
Reference in New Issue
Block a user