[wg] reload systemd after config change
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
ansible.builtin.copy:
|
||||
src: wireguard/wg0.conf
|
||||
dest: /etc/wireguard/wg0.conf
|
||||
notify: Reload systemd daemon
|
||||
|
||||
- name: Get server public IP
|
||||
ansible.builtin.command: dig +short myip.opendns.com @resolver1.opendns.com
|
||||
@@ -30,3 +31,8 @@
|
||||
name: wg-quick@wg0
|
||||
enabled: yes
|
||||
|
||||
handlers:
|
||||
- name: Reload systemd daemon
|
||||
ansible.builtin.command:
|
||||
cmd: systemctl daemon-reload
|
||||
|
||||
|
||||
Reference in New Issue
Block a user