From eb535fa97f0d7589bb5294c07a8cbc0ec9cddb8d Mon Sep 17 00:00:00 2001 From: Elizabeth Hunt Date: Sat, 23 Mar 2024 19:55:30 -0400 Subject: [PATCH] stop before config copy --- roles/hatecomputers/tasks/main.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/roles/hatecomputers/tasks/main.yml b/roles/hatecomputers/tasks/main.yml index 7eac0f4..4e12d32 100644 --- a/roles/hatecomputers/tasks/main.yml +++ b/roles/hatecomputers/tasks/main.yml @@ -4,6 +4,12 @@ - wireguard state: latest +- name: stop wireguard and enable on boot + systemd: + name: wg-quick@hatecomputers + enabled: yes + state: stopped + - name: copy config ansible.builtin.copy: src: ../files/wireguard.cfg @@ -24,7 +30,7 @@ systemd: name: wg-quick@hatecomputers enabled: yes - state: started + state: restarted - name: allow wireguard endpoint ufw ufw: