add RHEL 10 distros support

This commit is contained in:
ace
2025-06-19 09:42:10 +03:00
parent 5e4e311fba
commit 16475cdb38
2 changed files with 5 additions and 5 deletions

View File

@ -1,5 +1,5 @@
- name: Install wireguard for RHEL 7
when: ansible_facts['distribution_major_version'] == '7'
when: ansible_facts['distribution_major_version'] | int == 7
block:
- name: Install repos
yum:
@ -22,7 +22,7 @@
state: present
- name: Install wireguard for RHEL 8
when: ansible_facts['distribution_major_version'] == '8'
when: ansible_facts['distribution_major_version'] | int == 8
block:
- name: Install repos
dnf:
@ -38,8 +38,8 @@
- wireguard-tools
state: present
- name: Install wireguard for RHEL 9
when: ansible_facts['distribution_major_version'] == '9'
- name: Install wireguard for RHEL 9/10
when: ansible_facts['distribution_major_version'] | int >= 9
block:
- name: Install wireguard packages
dnf: