Hedgedoc: Add missing backups tasks before updating container.
This commit is contained in:
parent
63166a5fc2
commit
32f7274e39
1 changed files with 6 additions and 0 deletions
|
@ -43,6 +43,12 @@
|
|||
hedgedoc_pulled_images: "{{ hedgedoc_pulled_images | default([]) + [item.pulled_image.name] }}"
|
||||
loop: "{{ hedgedoc_docker_compose_pull_result['actions'] | default([]) | selectattr('pulled_image', 'defined') }}"
|
||||
|
||||
- name: Include backup tasks
|
||||
include_tasks:
|
||||
file: backup.yml
|
||||
# Make a backup if we didn't already make one and we pulled a new image
|
||||
when: not run_backup and hedgedoc_pulled_images is defined
|
||||
|
||||
- name: Create/Restart project services
|
||||
community.docker.docker_compose:
|
||||
project_src: "{{ hedgedoc_project_dir }}"
|
||||
|
|
Loading…
Reference in a new issue