[wg] reload systemd after config change

This commit is contained in:
2026-03-10 23:14:46 +01:00
parent 5bc955d5ef
commit 875304f58b

View File

@@ -14,6 +14,7 @@
ansible.builtin.copy: ansible.builtin.copy:
src: wireguard/wg0.conf src: wireguard/wg0.conf
dest: /etc/wireguard/wg0.conf dest: /etc/wireguard/wg0.conf
notify: Reload systemd daemon
- name: Get server public IP - name: Get server public IP
ansible.builtin.command: dig +short myip.opendns.com @resolver1.opendns.com ansible.builtin.command: dig +short myip.opendns.com @resolver1.opendns.com
@@ -30,3 +31,8 @@
name: wg-quick@wg0 name: wg-quick@wg0
enabled: yes enabled: yes
handlers:
- name: Reload systemd daemon
ansible.builtin.command:
cmd: systemctl daemon-reload