--- - name: Install WireGuard ansible.builtin.apt: name: wireguard state: present update_cache: true - name: Deploy WireGuard config ansible.builtin.template: src: wireguard/wg0.conf.j2 dest: "{{ edge_vps_wireguard_config_dir }}/{{ edge_vps_wireguard_interface }}.conf" mode: "0600" notify: restart wireguard - name: Enable WireGuard ansible.builtin.systemd: name: "wg-quick@{{ edge_vps_wireguard_interface }}" enabled: true state: started