1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_rustdesk.git synced 2024-08-16 10:19:48 +02:00
ansible_role_rustdesk/handlers/main.yml

27 lines
689 B
YAML
Raw Normal View History

2024-02-18 05:49:34 +01:00
---
- name: "Restart Rustdesk Signal Server"
listen: 'systemctl restart rustdesk-hbbs'
become: true
ansible.builtin.systemd:
name: rustdesk-hbbs
state: restarted
when: ansible_service_mgr == "systemd"
- name: "Restart Rustdesk Relay Server"
listen: 'systemctl restart rustdesk-hbbr'
become: true
ansible.builtin.systemd:
name: rustdesk-hbbr
state: restarted
when: ansible_service_mgr == "systemd"
- name: "Reload systemd"
listen: 'systemctl daemon-reload'
become: true
ansible.builtin.systemd:
daemon_reload: true
when: ansible_service_mgr == "systemd"
notify:
- 'systemctl restart rustdesk-hbbs'
- 'systemctl restart rustdesk-hbbr'