Add a task to show which image(s) got pulled.

This commit is contained in:
Viyurz 2024-02-23 15:15:30 +01:00
parent c4ea834bf6
commit 7d78e00d71
Signed by: Viyurz
SSH key fingerprint: SHA256:IskOHTmhHSJIvAt04N6aaxd5SZCVWW1Guf9tEcxIMj8
9 changed files with 60 additions and 3 deletions

View file

@ -65,7 +65,14 @@
project_src: "{{ coturn_project_dir }}" project_src: "{{ coturn_project_dir }}"
recreate: never recreate: never
pull: true pull: true
debug: true
when: docker_pull_images | bool when: docker_pull_images | bool
register: coturn_docker_compose_pull_result
- name: Display pulled image(s) name
set_fact:
coturn_pulled_images: "{{ coturn_pulled_images | default([]) + [item.pulled_image.name] }}"
loop: "{{ coturn_docker_compose_pull_result['actions'] | default([]) | selectattr('pulled_image', 'defined') }}"
- name: Create/Restart project services - name: Create/Restart project services
community.docker.docker_compose: community.docker.docker_compose:

View file

@ -25,7 +25,14 @@
project_src: "{{ element_project_dir }}" project_src: "{{ element_project_dir }}"
recreate: never recreate: never
pull: true pull: true
debug: true
when: docker_pull_images | bool when: docker_pull_images | bool
register: element_docker_compose_pull_result
- name: Display pulled image(s) name
set_fact:
element_pulled_images: "{{ element_pulled_images | default([]) + [item.pulled_image.name] }}"
loop: "{{ element_docker_compose_pull_result['actions'] | default([]) | selectattr('pulled_image', 'defined') }}"
- name: Create/Restart project services - name: Create/Restart project services
community.docker.docker_compose: community.docker.docker_compose:

View file

@ -37,11 +37,16 @@
when: docker_pull_images | bool when: docker_pull_images | bool
register: etebase_docker_compose_pull_result register: etebase_docker_compose_pull_result
- name: Display pulled image(s) name
set_fact:
etebase_pulled_images: "{{ etebase_pulled_images | default([]) + [item.pulled_image.name] }}"
loop: "{{ etebase_docker_compose_pull_result['actions'] | default([]) | selectattr('pulled_image', 'defined') }}"
- name: Include backup tasks - name: Include backup tasks
include_tasks: include_tasks:
file: backup.yml file: backup.yml
# Make a backup if we didn't already make one and we pulled a new image # Make a backup if we didn't already make one and we pulled a new image
when: not run_backup and etebase_docker_compose_pull_result['actions'] | default([]) | selectattr('pulled_image', 'defined') | length > 0 when: not run_backup and etebase_pulled_images is defined
- name: Create/Restart project services - name: Create/Restart project services
community.docker.docker_compose: community.docker.docker_compose:

View file

@ -34,7 +34,14 @@
project_src: "{{ hedgedoc_project_dir }}" project_src: "{{ hedgedoc_project_dir }}"
recreate: never recreate: never
pull: true pull: true
debug: true
when: docker_pull_images | bool when: docker_pull_images | bool
register: hedgedoc_docker_compose_pull_result
- name: Display pulled image(s) name
set_fact:
hedgedoc_pulled_images: "{{ hedgedoc_pulled_images | default([]) + [item.pulled_image.name] }}"
loop: "{{ hedgedoc_docker_compose_pull_result['actions'] | default([]) | selectattr('pulled_image', 'defined') }}"
- name: Create/Restart project services - name: Create/Restart project services
community.docker.docker_compose: community.docker.docker_compose:

View file

@ -26,7 +26,14 @@
project_src: "{{ homepage_project_dir }}" project_src: "{{ homepage_project_dir }}"
recreate: never recreate: never
pull: true pull: true
debug: true
when: docker_pull_images | bool when: docker_pull_images | bool
register: homepage_docker_compose_pull_result
- name: Display pulled image(s) name
set_fact:
homepage_pulled_images: "{{ homepage_pulled_images | default([]) + [item.pulled_image.name] }}"
loop: "{{ homepage_docker_compose_pull_result['actions'] | default([]) | selectattr('pulled_image', 'defined') }}"
- name: Create/Restart project services - name: Create/Restart project services
community.docker.docker_compose: community.docker.docker_compose:

View file

@ -26,7 +26,14 @@
project_src: "{{ searxng_project_dir }}" project_src: "{{ searxng_project_dir }}"
recreate: never recreate: never
pull: true pull: true
debug: true
when: docker_pull_images | bool when: docker_pull_images | bool
register: searxng_docker_compose_pull_result
- name: Display pulled image(s) name
set_fact:
searxng_pulled_images: "{{ searxng_pulled_images | default([]) + [item.pulled_image.name] }}"
loop: "{{ searxng_docker_compose_pull_result['actions'] | default([]) | selectattr('pulled_image', 'defined') }}"
- name: Create/Restart project services - name: Create/Restart project services
community.docker.docker_compose: community.docker.docker_compose:

View file

@ -54,11 +54,16 @@
when: docker_pull_images | bool when: docker_pull_images | bool
register: synapse_docker_compose_pull_result register: synapse_docker_compose_pull_result
- name: Display pulled image(s) name
set_fact:
synapse_pulled_images: "{{ synapse_pulled_images | default([]) + [item.pulled_image.name] }}"
loop: "{{ synapse_docker_compose_pull_result['actions'] | default([]) | selectattr('pulled_image', 'defined') }}"
- name: Include backup tasks - name: Include backup tasks
include_tasks: include_tasks:
file: backup.yml file: backup.yml
# Make a backup if we didn't already make one and we pulled a new image # Make a backup if we didn't already make one and we pulled a new image
when: not run_backup and synapse_docker_compose_pull_result['actions'] | default([]) | selectattr('pulled_image', 'defined') | length > 0 when: not run_backup and synapse_pulled_images is defined
- name: Create/Restart project services - name: Create/Restart project services
community.docker.docker_compose: community.docker.docker_compose:

View file

@ -16,7 +16,14 @@
project_src: "{{ syncthing_project_dir }}" project_src: "{{ syncthing_project_dir }}"
recreate: never recreate: never
pull: true pull: true
debug: true
when: docker_pull_images | bool when: docker_pull_images | bool
register: syncthing_docker_compose_pull_result
- name: Display pulled image(s) name
set_fact:
syncthing_pulled_images: "{{ syncthing_pulled_images | default([]) + [item.pulled_image.name] }}"
loop: "{{ syncthing_docker_compose_pull_result['actions'] | default([]) | selectattr('pulled_image', 'defined') }}"
- name: Create/Restart project services - name: Create/Restart project services
community.docker.docker_compose: community.docker.docker_compose:

View file

@ -29,11 +29,16 @@
when: docker_pull_images | bool when: docker_pull_images | bool
register: vaultwarden_docker_compose_pull_result register: vaultwarden_docker_compose_pull_result
- name: Display pulled image(s) name
set_fact:
vaultwarden_pulled_images: "{{ vaultwarden_pulled_images | default([]) + [item.pulled_image.name] }}"
loop: "{{ vaultwarden_docker_compose_pull_result['actions'] | default([]) | selectattr('pulled_image', 'defined') }}"
- name: Include backup tasks - name: Include backup tasks
include_tasks: include_tasks:
file: backup.yml file: backup.yml
# Make a backup if we didn't already make one and we pulled a new image # Make a backup if we didn't already make one and we pulled a new image
when: not run_backup and vaultwarden_docker_compose_pull_result['actions'] | default([]) | selectattr('pulled_image', 'defined') | length > 0 when: not run_backup and vaultwarden_pulled_images is defined
- name: Create/Restart project services - name: Create/Restart project services
community.docker.docker_compose: community.docker.docker_compose: