Open WebUI Remove Role¶
Safely removes the Open WebUI deployment from a host. Requires explicit confirmation.
Quick Start¶
- hosts: macmini
become: true
roles:
- role: local.ops_library.open_webui_remove
vars:
open_webui_remove_confirm: true
open_webui_remove_compose_files: true
open_webui_remove_site_dir: true
Role Variables¶
Variable |
Default |
Description |
|---|---|---|
|
|
Must be |
|
|
Remove the compose/env files. |
|
|
Remove the site directory. |
|
|
Remove persistent data. |
|
|
Remove the parent directory of the data path. |
|
|
Remove Traefik dynamic config file. |
|
|
Remove the service user. |
|
|
Remove the service group. |
Behavior¶
Stops and disables the systemd unit.
Removes the unit file.
Optionally removes compose/env files, site directory, Traefik config, data directory, parent data directory, and service user/group.
Usage Notes¶
Destructive actions are opt-in; set the corresponding
open_webui_remove_*flags totrue.If you remove the Traefik config, restart Traefik afterwards.
Removing the site directory also removes the compose/env files; you can target just those files via
open_webui_remove_compose_files.
Removal Checklist¶
Confirm backups if you plan to delete data.
Run the remove role with
open_webui_remove_confirm=true.Restart Traefik if the dynamic config was removed.