„wireguard.yml“ ändern
This commit is contained in:
parent
e7f189e98d
commit
daa0aee20b
@ -64,11 +64,6 @@
|
|||||||
args:
|
args:
|
||||||
creates: /etc/systemd/system/multi-user.target.wants/wg-quick@wg0.service
|
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
|
- name: Create /home/docker/wireguard.{{inventory_hostname}} dir
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: /home/docker/wireguard.{{inventory_hostname}}
|
path: /home/docker/wireguard.{{inventory_hostname}}
|
||||||
@ -163,7 +158,7 @@
|
|||||||
|
|
||||||
- name: Wait until wireguard install is finished
|
- name: Wait until wireguard install is finished
|
||||||
wait_for:
|
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
|
- name: /home/docker/traefik/providers/wireguard-ui.yml
|
||||||
blockinfile:
|
blockinfile:
|
||||||
@ -196,6 +191,11 @@
|
|||||||
port: '59666'
|
port: '59666'
|
||||||
proto: udp
|
proto: udp
|
||||||
|
|
||||||
|
- name: 'start wireguard'
|
||||||
|
command: systemctl start wg-quick@wg0.service
|
||||||
|
args:
|
||||||
|
creates: /run/systemd/units/invocation:wg-quick@wg0.service
|
||||||
|
|
||||||
handlers:
|
handlers:
|
||||||
|
|
||||||
- name: Restart ufw
|
- name: Restart ufw
|
||||||
|
Loading…
Reference in New Issue
Block a user