M6: open_webui restarts on quadlet change (#8)
ci-static / secret-scan (push) Successful in 21s
ci-static / yamllint (push) Successful in 1m54s
ci-static / ansible-syntax (push) Successful in 28s
ci-static / markdown-links (push) Successful in 21s

Co-authored-by: vibe-agent <vibe-agent@ghostnet.local>
This commit was merged in pull request #8.
This commit is contained in:
2026-11-11 19:46:32 +01:00
committed by spektr
parent 6e6feed3c8
commit a475c66823
2 changed files with 20 additions and 1 deletions
@@ -15,3 +15,20 @@
chdir: "{{ open_webui_home }}"
changed_when: false
when: not ansible_check_mode
- name: Restart OpenWebUI unit
ansible.builtin.command:
argv:
- /usr/sbin/runuser
- --user
- "{{ open_webui_user }}"
- --
- /usr/bin/env
- "HOME={{ open_webui_home }}"
- "XDG_RUNTIME_DIR=/run/user/{{ open_webui_uid }}"
- /usr/bin/systemctl
- --user
- restart
- "{{ open_webui_unit_prefix }}.service"
chdir: "{{ open_webui_home }}"
when: not ansible_check_mode
@@ -159,7 +159,9 @@
owner: root
group: "{{ open_webui_user }}"
mode: "0640"
notify: Reload workload user manager
notify:
- Reload workload user manager
- Restart OpenWebUI unit
- name: Ensure the workload user manager knows the rendered unit
ansible.builtin.command: