From b3330ab0cb40e91993e3bcc9377472a8203f21c0 Mon Sep 17 00:00:00 2001 From: ace Date: Mon, 1 Apr 2024 01:52:24 +0300 Subject: [PATCH] update to v0.6.2 --- defaults/main.yaml | 2 +- handlers/main.yaml | 8 ++++---- tasks/RedHat/podman.yaml | 2 +- templates/users.json.j2 | 5 +++-- 4 files changed, 9 insertions(+), 8 deletions(-) diff --git a/defaults/main.yaml b/defaults/main.yaml index 531065a..430a74d 100644 --- a/defaults/main.yaml +++ b/defaults/main.yaml @@ -5,7 +5,7 @@ wireguard_ui_network_mode: "host" wireguard_ui_config_dir: "/opt/{{ wireguard_ui_container_name }}" wireguard_ui_container_registry: "{{ container_registry | default(docker_registry) | default('docker.io') }}" wireguard_ui_image_name: "ngoduykhanh/wireguard-ui" -wireguard_ui_image_tag: "0.4.0" +wireguard_ui_image_tag: "0.6.2" wireguard_ui_systemd_unit_name: "{{ wireguard_ui_container_name }}.service" wireguard_ui_watcher_systemd_service_unit_name: "{{ wireguard_ui_container_name }}-watcher.service" wireguard_ui_watcher_systemd_path_unit_name: "{{ wireguard_ui_container_name }}-watcher.path" diff --git a/handlers/main.yaml b/handlers/main.yaml index 2cad888..b4e1b6a 100644 --- a/handlers/main.yaml +++ b/handlers/main.yaml @@ -11,8 +11,8 @@ volumes: "{{ wireguard_ui_volumes }}" when: - wireguard_ui_container_engine == 'docker' - - not wireguard_ui_container.changed - - not wireguard_ui_auth.changed + - wireguard_ui_container.changed + - wireguard_ui_auth.changed - name: Restart WireGuard UI with podman containers.podman.podman_container: @@ -26,5 +26,5 @@ volumes: "{{ wireguard_ui_volumes }}" when: - wireguard_ui_container_engine == 'podman' - - not wireguard_ui_container.changed - - not wireguard_ui_auth.changed + - wireguard_ui_container.changed + - wireguard_ui_auth.changed diff --git a/tasks/RedHat/podman.yaml b/tasks/RedHat/podman.yaml index 714c65d..b18d025 100644 --- a/tasks/RedHat/podman.yaml +++ b/tasks/RedHat/podman.yaml @@ -21,7 +21,7 @@ - name: Force login and password change template: - dest: "{{ wireguard_ui_config_dir }}/server/users.json" + dest: "{{ wireguard_ui_config_dir }}/users/users.json" src: users.json.j2 register: wireguard_ui_auth notify: Restart WireGuard UI with podman diff --git a/templates/users.json.j2 b/templates/users.json.j2 index 7eab005..1e2fe8e 100644 --- a/templates/users.json.j2 +++ b/templates/users.json.j2 @@ -1,4 +1,5 @@ { - "username": "{{ wireguard_ui_combined_env['WGUI_USERNAME'] }}", - "password": "{{ wireguard_ui_combined_env['WGUI_PASSWORD'] }}" + "username": "{{ wireguard_ui_combined_env['WGUI_USERNAME'] }}", + "password": "{{ wireguard_ui_combined_env['WGUI_PASSWORD'] }}", + "admin": true }