Split image(s) pulling & container(s) recreation for better clarity.
This commit is contained in:
parent
93c291289c
commit
c4ea834bf6
6 changed files with 48 additions and 12 deletions
|
@ -60,9 +60,15 @@
|
|||
mode: '640'
|
||||
become: true
|
||||
|
||||
- name: Pull/Create/Restart project services
|
||||
- name: Pull project services
|
||||
community.docker.docker_compose:
|
||||
project_src: "{{ coturn_project_dir }}"
|
||||
recreate: never
|
||||
pull: true
|
||||
when: docker_pull_images | bool
|
||||
|
||||
- name: Create/Restart project services
|
||||
community.docker.docker_compose:
|
||||
project_src: "{{ coturn_project_dir }}"
|
||||
pull: "{{ docker_pull_images | bool }}"
|
||||
# Restart if config file(s) changed
|
||||
restarted: "{{ coturn_template_turnserver_result['changed'] | bool }}"
|
||||
|
|
|
@ -20,9 +20,15 @@
|
|||
mode: '644'
|
||||
register: element_template_config_result
|
||||
|
||||
- name: Pull/Create/Restart project services
|
||||
- name: Pull project services
|
||||
community.docker.docker_compose:
|
||||
project_src: "{{ element_project_dir }}"
|
||||
recreate: never
|
||||
pull: true
|
||||
when: docker_pull_images | bool
|
||||
|
||||
- name: Create/Restart project services
|
||||
community.docker.docker_compose:
|
||||
project_src: "{{ element_project_dir }}"
|
||||
pull: "{{ docker_pull_images | bool }}"
|
||||
# Restart if config file(s) changed
|
||||
restarted: "{{ element_template_config_result['changed'] | bool }}"
|
||||
|
|
|
@ -29,7 +29,13 @@
|
|||
mode: '770'
|
||||
become: true
|
||||
|
||||
- name: Pull/Create/Restart project services
|
||||
- name: Pull project services
|
||||
community.docker.docker_compose:
|
||||
project_src: "{{ hedgedoc_project_dir }}"
|
||||
recreate: never
|
||||
pull: true
|
||||
when: docker_pull_images | bool
|
||||
|
||||
- name: Create/Restart project services
|
||||
community.docker.docker_compose:
|
||||
project_src: "{{ hedgedoc_project_dir }}"
|
||||
pull: "{{ docker_pull_images | bool }}"
|
||||
|
|
|
@ -21,9 +21,15 @@
|
|||
# Store result to restart services if the file(s) changed
|
||||
register: homepage_copy_files_result
|
||||
|
||||
- name: Pull/Create/Restart project services
|
||||
- name: Pull project services
|
||||
community.docker.docker_compose:
|
||||
project_src: "{{ homepage_project_dir }}"
|
||||
recreate: never
|
||||
pull: true
|
||||
when: docker_pull_images | bool
|
||||
|
||||
- name: Create/Restart project services
|
||||
community.docker.docker_compose:
|
||||
project_src: "{{ homepage_project_dir }}"
|
||||
pull: "{{ docker_pull_images | bool }}"
|
||||
# Restart if config file(s) changed
|
||||
restarted: "{{ homepage_copy_files_result['changed'] | bool }}"
|
||||
|
|
|
@ -21,9 +21,15 @@
|
|||
# Store result to restart services if the file(s) changed
|
||||
register: searxng_copy_files_result
|
||||
|
||||
- name: Pull/Create/Restart project services
|
||||
- name: Pull project services
|
||||
community.docker.docker_compose:
|
||||
project_src: "{{ searxng_project_dir }}"
|
||||
recreate: never
|
||||
pull: true
|
||||
when: docker_pull_images | bool
|
||||
|
||||
- name: Create/Restart project services
|
||||
community.docker.docker_compose:
|
||||
project_src: "{{ searxng_project_dir }}"
|
||||
pull: "{{ docker_pull_images | bool }}"
|
||||
# Restart if config file(s) changed
|
||||
restarted: "{{ searxng_copy_files_result['changed'] | bool }}"
|
||||
|
|
|
@ -11,7 +11,13 @@
|
|||
group: "{{ ansible_env['USER'] }}"
|
||||
mode: '640'
|
||||
|
||||
- name: Pull/Create/Restart project services
|
||||
- name: Pull project services
|
||||
community.docker.docker_compose:
|
||||
project_src: "{{ syncthing_project_dir }}"
|
||||
recreate: never
|
||||
pull: true
|
||||
when: docker_pull_images | bool
|
||||
|
||||
- name: Create/Restart project services
|
||||
community.docker.docker_compose:
|
||||
project_src: "{{ syncthing_project_dir }}"
|
||||
pull: "{{ docker_pull_images | bool }}"
|
||||
|
|
Loading…
Reference in a new issue