„wireguard.yml“ ändern

This commit is contained in:
olli 2023-06-07 16:12:57 +02:00
parent e7f189e98d
commit daa0aee20b

View File

@ -64,11 +64,6 @@
args:
creates: /etc/systemd/system/multi-user.target.wants/wg-quick@wg0.service
- name: 'start wireguard'
command: systemctl start wg-quick@wg0.service
args:
creates: /run/systemd/units/invocation:wg-quick@wg0.service
- name: Create /home/docker/wireguard.{{inventory_hostname}} dir
ansible.builtin.file:
path: /home/docker/wireguard.{{inventory_hostname}}
@ -163,7 +158,7 @@
- name: Wait until wireguard install is finished
wait_for:
path: /home/docker/wireguard.{{inventory_hostname}}/db/server/global_settings.json
path: /etc/wireguard/wg0.conf
- name: /home/docker/traefik/providers/wireguard-ui.yml
blockinfile:
@ -196,6 +191,11 @@
port: '59666'
proto: udp
- name: 'start wireguard'
command: systemctl start wg-quick@wg0.service
args:
creates: /run/systemd/units/invocation:wg-quick@wg0.service
handlers:
- name: Restart ufw