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

@ -22,7 +22,7 @@
- name: Force login and password change for first admin user - name: Force login and password change for first admin user
template: template:
dest: "{{ wireguard_ui_config_dir }}/users/{{ wireguard_ui_combined_env['WGUI_USERNAME']}}.json" dest: "{{ wireguard_ui_config_dir }}/users/{{ wireguard_ui_combined_env['WGUI_USERNAME'] }}.json"
src: admin.json.j2 src: admin.json.j2
register: wireguard_ui_auth register: wireguard_ui_auth
notify: Restart WireGuard UI with podman notify: Restart WireGuard UI with podman

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: