force login and password change

This commit is contained in:
ace
2022-07-14 22:38:16 +03:00
parent fcb4ff7057
commit db9e8b86cc
2 changed files with 10 additions and 0 deletions

View File

@ -28,6 +28,14 @@
register: wireguard_ui_container
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
shell: "podman generate systemd {{ wireguard_ui_container_name }}"
register: wireguard_ui_systemd_unit