Solved wireguard name bugs

This commit is contained in:
2025-08-29 13:03:06 +02:00
parent 1cfc2b7e23
commit 3ed84717a7
2 changed files with 7 additions and 5 deletions

View File

@@ -18,10 +18,10 @@
group: root
notify: reload sysctl configuration
- name: create /etc/wireguard/wg0.{{ SOFTWARE_NAME | lower }}.conf
- name: "deploy {{ WG0_CONF_DEST }}"
copy:
src: "{{ inventory_dir }}/files/{{ inventory_hostname }}/etc/wireguard/wg0.conf"
dest: /etc/wireguard/wg0.{{ SOFTWARE_NAME | lower }}.conf
owner: root
group: root
src: "{{ [inventory_dir, 'files', inventory_hostname, 'etc/wireguard/wg0.conf' ] | path_join }}"
dest: "{{ WG0_CONF_DEST }}"
owner: root
group: root
notify: restart wireguard

View File

@@ -1 +1,3 @@
application_id: svc-net-wireguard-core
WG0_CONF_DEST: "/etc/wireguard/wg0.conf"