mirror of
https://gitea.0xace.cc/ansible-galaxy/wireguard-ui.git
synced 2024-11-24 23:36:41 +00:00
add el7 support
This commit is contained in:
parent
f1b7eb3a17
commit
a571c34be8
@ -1,3 +1,26 @@
|
|||||||
|
- name: Install wireguard for RHEL 7
|
||||||
|
when: ansible_facts['distribution_major_version'] == '7'
|
||||||
|
block:
|
||||||
|
- name: Install repos
|
||||||
|
yum:
|
||||||
|
name:
|
||||||
|
- elrepo-release
|
||||||
|
- epel-release
|
||||||
|
state: present
|
||||||
|
|
||||||
|
- name: Install wireguard packages
|
||||||
|
yum:
|
||||||
|
name:
|
||||||
|
- yum-plugin-elrepo
|
||||||
|
state: present
|
||||||
|
|
||||||
|
- name: Install wireguard packages
|
||||||
|
yum:
|
||||||
|
name:
|
||||||
|
- kmod-wireguard
|
||||||
|
- wireguard-tools
|
||||||
|
state: present
|
||||||
|
|
||||||
- name: Install wireguard for RHEL 8
|
- name: Install wireguard for RHEL 8
|
||||||
when: ansible_facts['distribution_major_version'] == '8'
|
when: ansible_facts['distribution_major_version'] == '8'
|
||||||
block:
|
block:
|
||||||
@ -13,6 +36,7 @@
|
|||||||
name:
|
name:
|
||||||
- kmod-wireguard
|
- kmod-wireguard
|
||||||
- wireguard-tools
|
- wireguard-tools
|
||||||
|
state: present
|
||||||
|
|
||||||
- name: Install wireguard for RHEL 9
|
- name: Install wireguard for RHEL 9
|
||||||
when: ansible_facts['distribution_major_version'] == '9'
|
when: ansible_facts['distribution_major_version'] == '9'
|
||||||
|
Loading…
Reference in New Issue
Block a user