16 lines
406 B
YAML
16 lines
406 B
YAML
---
|
|
- name: configure interface
|
|
template:
|
|
src: wg-multi.conf.j2
|
|
dest: "{{ wireguard_etc_path }}/{{ _wireguard_interface }}.conf"
|
|
owner: root
|
|
group: root
|
|
mode: 0400
|
|
notify: restart wg-quick
|
|
|
|
- name: manage service
|
|
service:
|
|
name: "{{ wireguard_service_name }}@{{ _wireguard_interface }}"
|
|
state: "{{ wireguard_service_state }}"
|
|
enabled: "{{ wireguard_service_enabled }}"
|