mirror of
https://gitea.0xace.cc/ansible-galaxy/wireguard-ui.git
synced 2024-11-24 23:36:41 +00:00
force login and password change
This commit is contained in:
parent
fcb4ff7057
commit
db9e8b86cc
@ -12,6 +12,7 @@
|
|||||||
when:
|
when:
|
||||||
- wireguard_ui_container_engine == 'docker'
|
- wireguard_ui_container_engine == 'docker'
|
||||||
- not wireguard_ui_container.changed
|
- not wireguard_ui_container.changed
|
||||||
|
- not wireguard_ui_auth.changed
|
||||||
|
|
||||||
- name: Restart WireGuard UI with podman
|
- name: Restart WireGuard UI with podman
|
||||||
containers.podman.podman_container:
|
containers.podman.podman_container:
|
||||||
@ -26,3 +27,4 @@
|
|||||||
when:
|
when:
|
||||||
- wireguard_ui_container_engine == 'podman'
|
- wireguard_ui_container_engine == 'podman'
|
||||||
- not wireguard_ui_container.changed
|
- not wireguard_ui_container.changed
|
||||||
|
- not wireguard_ui_auth.changed
|
||||||
|
@ -28,6 +28,14 @@
|
|||||||
register: wireguard_ui_container
|
register: wireguard_ui_container
|
||||||
notify: Restart WireGuard UI with podman
|
notify: Restart WireGuard UI with podman
|
||||||
|
|
||||||
|
- name: Force login and password change
|
||||||
|
template:
|
||||||
|
dest: "{{ wireguard_ui_config_dir }}/server/users.json"
|
||||||
|
src: users.json.j2
|
||||||
|
register: wireguard_ui_auth
|
||||||
|
notify: Restart WireGuard UI with podman
|
||||||
|
when: wireguard_ui_auth.changed
|
||||||
|
|
||||||
- name: Generate container systemd unit
|
- name: Generate container systemd unit
|
||||||
shell: "podman generate systemd {{ wireguard_ui_container_name }}"
|
shell: "podman generate systemd {{ wireguard_ui_container_name }}"
|
||||||
register: wireguard_ui_systemd_unit
|
register: wireguard_ui_systemd_unit
|
||||||
|
Loading…
Reference in New Issue
Block a user