split wireguard install for el8 and el9

This commit is contained in:
ace 2022-07-13 18:12:56 +03:00
parent b71d5c549a
commit f1b7eb3a17
No known key found for this signature in database
GPG Key ID: 2E47CC17BA7F8CF0

View File

@ -8,7 +8,7 @@
- epel-release
state: present
- name: Install kmod wireguard
- name: Install wireguard packages
dnf:
name:
- kmod-wireguard
@ -17,7 +17,7 @@
- name: Install wireguard for RHEL 9
when: ansible_facts['distribution_major_version'] == '9'
block:
- name: Install repos
- name: Install wireguard packages
dnf:
name:
- wireguard-tools