fix default admin user creation

This commit is contained in:
ace 2024-11-11 00:09:54 +03:00
parent 8dc462d7a8
commit 5e4e311fba
Signed by: ace
GPG Key ID: 2C08973DD37A76FD
2 changed files with 2 additions and 2 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/admin.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

@ -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/admin.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