blob: 86d642055403e20d812ef3b2c91e4cdb6ac2551d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
- name: enable wireguard for FreeBSD
service:
name: wireguard
state: restarted
enabled: true
args: "{{ global.dcontroller }}"
when: ansible_distribution == "FreeBSD"
- name: generate and enable init script
include_role: name=rc
vars:
rc_cmd: "{{ path_wgquick }}"
rc_args: "up {{ global.dcontroller }}"
rc_name: wireguard
rc_user: "{{ user_root }}"
ignore_errors: true
when: ansible_distribution != "FreeBSD"
|