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