stop before config copy
This commit is contained in:
parent
1ffb214035
commit
eb535fa97f
@ -4,6 +4,12 @@
|
|||||||
- wireguard
|
- wireguard
|
||||||
state: latest
|
state: latest
|
||||||
|
|
||||||
|
- name: stop wireguard and enable on boot
|
||||||
|
systemd:
|
||||||
|
name: wg-quick@hatecomputers
|
||||||
|
enabled: yes
|
||||||
|
state: stopped
|
||||||
|
|
||||||
- name: copy config
|
- name: copy config
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
src: ../files/wireguard.cfg
|
src: ../files/wireguard.cfg
|
||||||
@ -24,7 +30,7 @@
|
|||||||
systemd:
|
systemd:
|
||||||
name: wg-quick@hatecomputers
|
name: wg-quick@hatecomputers
|
||||||
enabled: yes
|
enabled: yes
|
||||||
state: started
|
state: restarted
|
||||||
|
|
||||||
- name: allow wireguard endpoint ufw
|
- name: allow wireguard endpoint ufw
|
||||||
ufw:
|
ufw:
|
||||||
|
Loading…
Reference in New Issue
Block a user