blob: 1fa12170c64d7cd87c7a82372386344629ba9fa1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
---
# handlers file for uvok_tinc
# restart service - at least my Hetzner server gets serious problems with "restart"
# it needs to stop, wait, and start again.
- name: Stop Tinc
listen: configure tinc
service:
name: "tinc@{{ tinc_options.netname }}"
state: stopped
- name: Wait
listen: configure tinc
ansible.builtin.pause:
seconds: 3
- name: Start Tinc
listen: configure tinc
service:
name: "tinc@{{ tinc_options.netname }}"
state: started
|