You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
---
|
|
|
|
# Copyright (C) 2018-2020 Robert Wimmer
|
|
|
|
# Copyright (C) 2019-2020 Ties de Kock
|
|
|
|
# Copyright (C) 2021 Steve Fan
|
|
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
|
|
|
- name: (Proxmox) Add WireGuard repository
|
|
|
|
apt_repository:
|
|
|
|
repo: "deb http://deb.debian.org/debian buster-backports main"
|
|
|
|
state: "{{ 'present' if (ansible_distribution_version | int <= 10) else 'absent' }}"
|
|
|
|
update_cache: true
|
|
|
|
|
|
|
|
- name: (Proxmox) Install kernel headers for the currently running kernel to compile WireGuard with DKMS
|
|
|
|
apt:
|
|
|
|
name:
|
|
|
|
- "pve-headers-{{ ansible_kernel }}"
|
|
|
|
state: present
|
|
|
|
|
|
|
|
- name: (Proxmox) Install WireGuard packages
|
|
|
|
apt:
|
|
|
|
name:
|
|
|
|
- "wireguard"
|
|
|
|
state: present
|