Schedule open webui shutdown and startup
This commit is contained in:
parent
19fd7afbad
commit
30415b39f1
1 changed files with 16 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue