mirror of
https://gitea.0xace.cc/ansible-galaxy/wireguard-ui.git
synced 2025-06-28 10:51:11 +00:00
add RHEL 10 distros support
This commit is contained in:
@ -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
|
||||||
|
@ -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:
|
||||||
|
Reference in New Issue
Block a user