improve wireguard

This commit is contained in:
Pim Kunis 2023-04-06 20:27:58 +02:00
parent 0d505900fa
commit 2ecd42e474
4 changed files with 46 additions and 21 deletions

View file

@ -6,5 +6,6 @@
- name: Install home.conf
become: true
template:
src: "{{ role_path }}/templates/home.conf.j2"
dest: /etc/wireguard/home.conf
src: "{{ role_path }}/templates/wg.conf.j2"
dest: "/etc/wireguard/{{ item.name }}.conf"
loop: "{{ wireguard_interfaces }}"