Schedule open webui shutdown and startup

This commit is contained in:
Ivan R. 2024-12-11 20:14:11 +05:00
parent 19fd7afbad
commit 30415b39f1
Signed by: lumin
GPG key ID: E0937DC7CD6D3817

View file

@ -52,3 +52,19 @@
- name: haproxy
- name: postgresql
restart_policy: unless-stopped
- name: Set up shutdown job
become: true
ansible.builtin.cron:
name: open-webui-shutdown
hour: "0"
minute: "0"
job: "docker stop open-webui-1"
user: root
- name: Set up startup job
become: true
ansible.builtin.cron:
name: open-webui-startup
hour: "9"
minute: "0"
job: "docker start open-webui-1"
user: root