mirror of
https://gitea.0xace.cc/ansible-galaxy/wireguard-ui.git
synced 2025-08-18 07:53:35 +00:00
split wireguard install for el8 and el9
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
- name: Install wireguard for RHEL 8
|
||||
when: distribution_major_version == '8'
|
||||
block:
|
||||
- name: Install repos
|
||||
dnf:
|
||||
name:
|
||||
@@ -11,6 +14,15 @@
|
||||
- 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:
|
||||
name: wg-quick@{{ wireguard_ui_env['WGUI_CONFIG_FILE_PATH'] | basename | split('.') | first }}
|
||||
|
Reference in New Issue
Block a user