diff options
Diffstat (limited to 'tnet/wg-links-link.yml')
-rw-r--r-- | tnet/wg-links-link.yml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tnet/wg-links-link.yml b/tnet/wg-links-link.yml index 6f1bb87..632024e 100644 --- a/tnet/wg-links-link.yml +++ b/tnet/wg-links-link.yml @@ -7,6 +7,8 @@ - name: "Make netdev for {{ inventory_hostname }} -> {{ item.key }}" notify: systemctl restart systemd-networkd become: yes + vars: + if_name: tnet-{{ item.if_name|default(item.key) }} copy: dest: "/etc/systemd/network/50-tnet-{{ item.key }}.netdev" owner: systemd-network @@ -14,7 +16,7 @@ mode: 0640 content: | [NetDev] - Name=tnet-{{ item.key }} + Name={{ if_name }} Kind=wireguard Description=tnet link to {{ item.key }} |