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: