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.
ansible-role-wireguard/tasks/setup-centos-7.yml

33 lines
672 B
YAML

---
# Copyright (C) 2020 Roman Danko
# SPDX-License-Identifier: GPL-3.0-or-later
- 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