mirror of
https://gitea.0xace.cc/ansible-galaxy/wireguard-ui.git
synced 2024-11-24 15:26:41 +00:00
split wireguard install for el8 and el9
This commit is contained in:
parent
fb0ac44188
commit
b7d9f987d0
@ -1,15 +1,27 @@
|
||||
- name: Install repos
|
||||
dnf:
|
||||
name:
|
||||
- elrepo-release
|
||||
- epel-release
|
||||
state: present
|
||||
- name: Install wireguard for RHEL 8
|
||||
when: distribution_major_version == '8'
|
||||
block:
|
||||
- name: Install repos
|
||||
dnf:
|
||||
name:
|
||||
- elrepo-release
|
||||
- epel-release
|
||||
state: present
|
||||
|
||||
- name: Install kmod wireguard
|
||||
dnf:
|
||||
name:
|
||||
- kmod-wireguard
|
||||
- wireguard-tools
|
||||
- name: Install kmod wireguard
|
||||
dnf:
|
||||
name:
|
||||
- kmod-wireguard
|
||||
- wireguard-tools
|
||||
|
||||
- name: Install wireguard for RHEL 9
|
||||
when: distribution_major_version == '9'
|
||||
block:
|
||||
- name: Install repos
|
||||
dnf:
|
||||
name:
|
||||
- wireguard-tools
|
||||
state: present
|
||||
|
||||
- name: Enable wg-quick systemd unit
|
||||
systemd:
|
||||
|
Loading…
Reference in New Issue
Block a user