Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WireGuard is included in Ubuntu by default now #1857

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions docs/client-linux-wireguard.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,7 @@
To connect to your AlgoVPN using [WireGuard](https://www.wireguard.com) from Ubuntu, first install WireGuard:

```shell
# Ubuntu 16.04 only: Add the WireGuard repository
sudo add-apt-repository ppa:wireguard/wireguard
sudo apt update

# Install the tools:
sudo apt update && sudo apt upgrade
sudo apt install wireguard openresolv
```

Expand Down
4 changes: 0 additions & 4 deletions roles/wireguard/files/50-wireguard-unattended-upgrades

This file was deleted.

23 changes: 0 additions & 23 deletions roles/wireguard/tasks/ubuntu.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,11 @@
---
- block:
- name: WireGuard repository configured
apt_repository:
repo: ppa:wireguard/wireguard
state: present
register: result
until: result is succeeded
retries: 10
delay: 3

- name: Configure unattended-upgrades
copy:
src: 50-wireguard-unattended-upgrades
dest: /etc/apt/apt.conf.d/50-wireguard-unattended-upgrades
owner: root
group: root
mode: 0644
when: ansible_facts['distribution_version'] is version('20.04', '<')

- name: WireGuard installed
apt:
name: wireguard
state: present
update_cache: true

- name: WireGuard reload-module-on-update
file:
dest: /etc/wireguard/.reload-module-on-update
state: touch

- name: Set OS specific facts
set_fact:
service_name: "wg-quick@{{ wireguard_interface }}"
Expand Down