summaryrefslogtreecommitdiff
path: root/roles/tinc/handlers/main.yml
blob: 56b582927d9de5e33094a461ecd04b61b97b6241 (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_netname }}"
    state: stopped
- name: Wait
  listen: configure tinc
  ansible.builtin.pause:
    seconds: 3
- name: Start Tinc
  listen: configure tinc
  service:
    name: "tinc@{{ tinc_netname }}"
    state: started