From 5e4e311fbab7eef1ed8a003329d8f318331b5dab Mon Sep 17 00:00:00 2001 From: ace Date: Mon, 11 Nov 2024 00:09:54 +0300 Subject: [PATCH] fix default admin user creation --- tasks/Debian/podman.yaml | 2 +- tasks/RedHat/podman.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/Debian/podman.yaml b/tasks/Debian/podman.yaml index 5afb6ec..640b0f0 100644 --- a/tasks/Debian/podman.yaml +++ b/tasks/Debian/podman.yaml @@ -22,7 +22,7 @@ - name: Force login and password change for first admin user template: - dest: "{{ wireguard_ui_config_dir }}/users/admin.json" + dest: "{{ wireguard_ui_config_dir }}/users/{{ wireguard_ui_combined_env['WGUI_USERNAME'] }}.json" src: admin.json.j2 register: wireguard_ui_auth notify: Restart WireGuard UI with podman diff --git a/tasks/RedHat/podman.yaml b/tasks/RedHat/podman.yaml index 5afb6ec..a751eb1 100644 --- a/tasks/RedHat/podman.yaml +++ b/tasks/RedHat/podman.yaml @@ -22,7 +22,7 @@ - name: Force login and password change for first admin user template: - dest: "{{ wireguard_ui_config_dir }}/users/admin.json" + dest: "{{ wireguard_ui_config_dir }}/users/{{ wireguard_ui_combined_env['WGUI_USERNAME']}}.json" src: admin.json.j2 register: wireguard_ui_auth notify: Restart WireGuard UI with podman