wireguard-ui/tasks/Debian/wireguard_install.yaml

15 lines
376 B
YAML
Raw Normal View History

2024-04-03 15:14:20 +00:00
- 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