- 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