first working version
This commit is contained in:
parent
43e8780420
commit
d5858fe595
4 changed files with 19 additions and 10 deletions
|
|
@ -3,6 +3,7 @@
|
|||
name:
|
||||
- wireguard
|
||||
- wireguard-tools
|
||||
- linux-headers-amd64
|
||||
|
||||
- name: handle a wireguard network
|
||||
include_tasks: net.yml
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
- set_fact:
|
||||
item: "{{ {}|combine(wireguard.defaults , {'name': conn.name}, item.value, recursive=True) }}"
|
||||
item: "{{ {}|combine(wireguard.defaults , {'name': conn.key}, conn.value, recursive=True) }}"
|
||||
|
||||
- name: generate interface config
|
||||
template:
|
||||
|
|
@ -9,4 +9,4 @@
|
|||
- name: generate wireguard config
|
||||
template:
|
||||
src: wireguard.conf.j2
|
||||
dest: /etc/wireguard//wg_{{ item.name }}
|
||||
dest: /etc/wireguard/wg_{{ item.name }}.conf
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue