Switched to ELRepo for Centos (#59)
* Switched to ELRepo for Centos (#50) - added switch to differentiate setup of Centos7/8 - replaced old repository by officialy recomended - added step to remove old dkms wireguard package - switched to install KMOD wireguard package * Updated CHANGELOG after switching to ELRepo for Centos * Update CHANGELOG.md Co-authored-by: Robert Wimmer <2039811+githubixx@users.noreply.github.com> * Updted CHANGELOG: added notice about old wireguard Centos repository removal Co-authored-by: Robert Wimmer <2039811+githubixx@users.noreply.github.com>master 7.0.0
parent
d5b81cb75e
commit
c1f413f966
@ -0,0 +1,29 @@
|
|||||||
|
---
|
||||||
|
- name: (CentOS 7) Install EPEL & ELRepo repository
|
||||||
|
yum:
|
||||||
|
name:
|
||||||
|
- epel-release
|
||||||
|
- https://www.elrepo.org/elrepo-release-7.el7.elrepo.noarch.rpm
|
||||||
|
update_cache: yes
|
||||||
|
|
||||||
|
- name: (CentOS 7) Install yum-plugin-elrepo
|
||||||
|
yum:
|
||||||
|
name: yum-plugin-elrepo
|
||||||
|
update_cache: yes
|
||||||
|
|
||||||
|
- name: (CentOS 7) Ensure wireguard DKMS package is removed
|
||||||
|
yum:
|
||||||
|
name:
|
||||||
|
- "wireguard-dkms"
|
||||||
|
state: absent
|
||||||
|
tags:
|
||||||
|
- wg-install
|
||||||
|
|
||||||
|
- name: (CentOS 7) Install wireguard packages
|
||||||
|
yum:
|
||||||
|
name:
|
||||||
|
- "kmod-wireguard"
|
||||||
|
- "wireguard-tools"
|
||||||
|
state: present
|
||||||
|
tags:
|
||||||
|
- wg-install
|
@ -0,0 +1,24 @@
|
|||||||
|
---
|
||||||
|
- name: (CentOS 8) Install EPEL & ELRepo repository
|
||||||
|
yum:
|
||||||
|
name:
|
||||||
|
- epel-release
|
||||||
|
- elrepo-release
|
||||||
|
update_cache: yes
|
||||||
|
|
||||||
|
- name: (CentOS 8) Ensure wireguard DKMS package is removed
|
||||||
|
yum:
|
||||||
|
name:
|
||||||
|
- "wireguard-dkms"
|
||||||
|
state: absent
|
||||||
|
tags:
|
||||||
|
- wg-install
|
||||||
|
|
||||||
|
- name: (CentOS 8) Install wireguard packages
|
||||||
|
yum:
|
||||||
|
name:
|
||||||
|
- "kmod-wireguard"
|
||||||
|
- "wireguard-tools"
|
||||||
|
state: present
|
||||||
|
tags:
|
||||||
|
- wg-install
|
@ -1,19 +0,0 @@
|
|||||||
---
|
|
||||||
- name: (CentOS) Add WireGuard repository
|
|
||||||
get_url:
|
|
||||||
url: https://copr.fedorainfracloud.org/coprs/jdoss/wireguard/repo/epel-7/jdoss-wireguard-epel-7.repo
|
|
||||||
dest: /etc/yum.repos.d/wireguard.repo
|
|
||||||
|
|
||||||
- name: (CentOS) Install EPEL repository
|
|
||||||
yum:
|
|
||||||
name: epel-release
|
|
||||||
update_cache: yes
|
|
||||||
|
|
||||||
- name: (CentOS) Install wireguard packages
|
|
||||||
yum:
|
|
||||||
name:
|
|
||||||
- "wireguard-dkms"
|
|
||||||
- "wireguard-tools"
|
|
||||||
state: present
|
|
||||||
tags:
|
|
||||||
- wg-install
|
|
Loading…
Reference in New Issue