This repository has been archived on 2020-08-18. You can view files and clone it, but cannot push or open issues or pull requests.
ansible-wireguard/handlers/main.yml

15 lines
372 B
YAML

- name: Enable wg-quick
systemd:
name: 'wg-quick@{{ wireguard.interface }}'
enabled: yes
state: started
- name: Restart wg-quick
systemd:
name: 'wg-quick@{{ wireguard.interface }}'
state: restarted
- name: Save netfilter rules
command:
argv:
- '/usr/sbin/netfilter-persistent'
- 'save'