From 0c6c1b8b800f4f8ac750f947b7a07a06021e382d Mon Sep 17 00:00:00 2001 From: Maxim Burgerhout Date: Mon, 8 Feb 2021 23:42:14 +0100 Subject: [PATCH] Fix Fedora support (#93) Fedora 32 still installs the copr repo and the dkms module. I assume that is still necessary for Fedora 32, though I have no box to test it with. If the user is on Fedora 33 or higher, the default setup-fedora.yml is used, which no longer installs the copr repo, nor the dkms module since neither are necessary anymore. --- tasks/setup-fedora-32.yml | 20 ++++++++++++++++++++ tasks/setup-fedora.yml | 9 --------- 2 files changed, 20 insertions(+), 9 deletions(-) create mode 100644 tasks/setup-fedora-32.yml diff --git a/tasks/setup-fedora-32.yml b/tasks/setup-fedora-32.yml new file mode 100644 index 0000000..67448be --- /dev/null +++ b/tasks/setup-fedora-32.yml @@ -0,0 +1,20 @@ +--- +# Copyright (C) 2020 Ties de Kock +# SPDX-License-Identifier: GPL-3.0-or-later + +- name: (Fedora) Add WireGuard COPR + yum_repository: + name: "jdoss-wireguard" + description: "Copr repo for WireGuard owned by jdoss" + baseurl: "https://copr-be.cloud.fedoraproject.org/results/jdoss/wireguard/fedora-$releasever-$basearch/" + gpgkey: "https://copr-be.cloud.fedoraproject.org/results/jdoss/wireguard/pubkey.gpg" + gpgcheck: yes + +- name: (Fedora) Install WireGuard packages + yum: + name: + - "wireguard-dkms" + - "wireguard-tools" + state: present + tags: + - wg-install diff --git a/tasks/setup-fedora.yml b/tasks/setup-fedora.yml index 67448be..108e4ce 100644 --- a/tasks/setup-fedora.yml +++ b/tasks/setup-fedora.yml @@ -2,18 +2,9 @@ # Copyright (C) 2020 Ties de Kock # SPDX-License-Identifier: GPL-3.0-or-later -- name: (Fedora) Add WireGuard COPR - yum_repository: - name: "jdoss-wireguard" - description: "Copr repo for WireGuard owned by jdoss" - baseurl: "https://copr-be.cloud.fedoraproject.org/results/jdoss/wireguard/fedora-$releasever-$basearch/" - gpgkey: "https://copr-be.cloud.fedoraproject.org/results/jdoss/wireguard/pubkey.gpg" - gpgcheck: yes - - name: (Fedora) Install WireGuard packages yum: name: - - "wireguard-dkms" - "wireguard-tools" state: present tags: