summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElizabeth Hunt <elizabeth.hunt@simponic.xyz>2024-03-23 19:55:30 -0400
committerElizabeth Hunt <elizabeth.hunt@simponic.xyz>2024-03-23 19:55:30 -0400
commiteb535fa97f0d7589bb5294c07a8cbc0ec9cddb8d (patch)
treeac453139e550fef96b3e59434e97ed5248734b41
parent1ffb2140355e7f5cfa5dee22f25dcb049712ad44 (diff)
downloadoldinfra-eb535fa97f0d7589bb5294c07a8cbc0ec9cddb8d.tar.gz
oldinfra-eb535fa97f0d7589bb5294c07a8cbc0ec9cddb8d.zip
stop before config copy
-rw-r--r--roles/hatecomputers/tasks/main.yml8
1 files changed, 7 insertions, 1 deletions
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: