„wireguard.yml“ ändern
This commit is contained in:
parent
e7f189e98d
commit
daa0aee20b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user