stop before config copy

This commit is contained in:
Elizabeth Hunt 2024-03-23 19:55:30 -04:00
parent 1ffb214035
commit eb535fa97f

View File

@ -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: