blob: 86d642055403e20d812ef3b2c91e4cdb6ac2551d (
plain) (
tree)
|
|
- 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"
|