wireguard-ui/tasks/Debian/wireguard_install.yaml
2024-04-03 18:14:20 +03:00

15 lines
376 B
YAML

- name: Install wireguard for Debain 12
block:
- name: Install wireguard packages
apt:
name:
- wireguard-tools
state: present
update_cache: yes
- name: Enable wg-quick systemd unit
systemd:
name: wg-quick@{{ wireguard_ui_combined_env['WGUI_CONFIG_FILE_PATH'] | basename | split('.') | first }}
enabled: yes
daemon_reload: yes