blob: 37f3ceccc7a6194099c0a95975f98ee8c05d5c39 (
plain) (
tree)
|
|
- name: enable wireguard interface for OpenBSD
lineinfile:
path: /etc/rc.local
regexp: "^/usr/local/bin/wg-quick up {{ wireguard_domain_controller }}$"
line: "/usr/local/bin/wg-quick up {{ wireguard_domain_controller }}"
owner: 0
owner: 0
create: true
mode: 0644
when: ansible_distribution == "OpenBSD"
- name: restart wireguard interface
raw: |
wg-quick down {{ wireguard_domain_controller }}
sleep {{ 10 | random(start=1) }}
wg-quick up {{ wireguard_domain_controller }}
when: ansible_distribution == "OpenBSD"
register: result
- name: show wireguard output
debug:
var: result
|