Solved wiregiard bug

This commit is contained in:
Kevin Veen-Birkenbach 2024-01-11 11:24:40 +01:00
parent ef8a0925b6
commit 665c96164b
2 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
- name: "restart wireguard"
systemd:
name: wg-quick.cymais@wg0.service
name: wg-quick@wg0.cymais.service
state: restarted
enabled: yes
daemon_reload: yes

View File

@ -18,10 +18,10 @@
group: root
notify: reload sysctl configuration
- name: create /etc/wireguard/wg0.conf
- name: create /etc/wireguard/wg0.cymais.conf
copy:
src: "{{ inventory_dir }}/files/{{ inventory_hostname }}/etc/wireguard/wg0.conf"
dest: /etc/wireguard/wg0.conf
dest: /etc/wireguard/wg0.cymais.conf
owner: root
group: root
notify: restart wireguard