No description
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
agent 175c7e4af3 Add openwebui_etc_hosts pod extra host entries
pasta forwards the host resolver, so internal names the host cannot
resolve fail inside the container. add_host goes on the pod since the
network is shared with the infra container.

Agent: pi
2026-10-09 08:00:31 +00:00
defaults Add postgres sidecar as the default openwebui database 2026-10-09 06:53:50 +00:00
meta update 2026-09-26 18:44:31 +00:00
tasks Add openwebui_etc_hosts pod extra host entries 2026-10-09 08:00:31 +00:00
.gitignore update common format, update deployment name 2025-10-06 22:34:51 +00:00
README.md Add postgres sidecar as the default openwebui database 2026-10-09 06:53:50 +00:00

ansible-roles-openwebui

This role deploys a podman based openwebui instance as a pod with an embedded postgres sidecar for the database (openwebui_database_enabled, requires openwebui_database_password in vault, DATABASE_URL per the open-webui scaling guide) and a valkey sidecar for websocket support (openwebui_valkey_enabled, requires openwebui_valkey_password).

Task Configuration

- name: Setup Open WebUI
  hosts: somehost
  become: true
  roles:
    - role: openwebui
    - role: caddy
      caddy_routes:
        - name: some-test
          url: webui.somehost.com
          srv: "{{ caddy_local_address }}:3002"
    - role: firewalld
      firewalld_add:
        - name: public
          forwards:
            - port: 80
              to: 8080
            - port: 443
              to: 8443

Deployment and Removal

systemctl --user stop container-openwebui.service

Deploy

ansible-playbook -i hosts site.yml --tags=firewalld,caddy,openwebui --limit=somehost

Remove

ansible-playbook -i hosts site.yml --tags=firewalld,caddy,openwebui --extra-vars "deployment_state=absent firewall_action=remove" --limit=somehost