mirror of
https://github.com/roles-ansible/ansible_role_rustdesk.git
synced 2024-08-16 10:19:48 +02:00
27 lines
689 B
YAML
27 lines
689 B
YAML
|
---
|
||
|
- 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'
|