main.yml 385 Bytes
Newer Older
Alexander Withers's avatar
Alexander Withers committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
---
- name: determine tinc service name
  set_fact:
        tincservice: "@{{ vpn_name }}"
  when: (ansible_distribution == "CentOS")

- name: determine tinc service name
  set_fact:
        tincservice: ""
  when: (ansible_distribution == "Ubuntu")

- name: reload systemd
  command: systemctl daemon-reload

- name: restart tinc
  service: name=tinc{{ tincservice }} state=restarted