diff --git a/roles/coturn/tasks/main.yml b/roles/coturn/tasks/main.yml index 69f2601..6254752 100644 --- a/roles/coturn/tasks/main.yml +++ b/roles/coturn/tasks/main.yml @@ -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 }}" diff --git a/roles/element/tasks/main.yml b/roles/element/tasks/main.yml index 59c36ed..286dc7d 100644 --- a/roles/element/tasks/main.yml +++ b/roles/element/tasks/main.yml @@ -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 }}" diff --git a/roles/hedgedoc/tasks/main.yml b/roles/hedgedoc/tasks/main.yml index cacb88c..d155760 100644 --- a/roles/hedgedoc/tasks/main.yml +++ b/roles/hedgedoc/tasks/main.yml @@ -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 }}" diff --git a/roles/homepage/tasks/main.yml b/roles/homepage/tasks/main.yml index 67338d4..ada6e2b 100644 --- a/roles/homepage/tasks/main.yml +++ b/roles/homepage/tasks/main.yml @@ -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 }}" diff --git a/roles/searxng/tasks/main.yml b/roles/searxng/tasks/main.yml index 01bb50c..452b0c6 100644 --- a/roles/searxng/tasks/main.yml +++ b/roles/searxng/tasks/main.yml @@ -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 }}" diff --git a/roles/syncthing/tasks/main.yml b/roles/syncthing/tasks/main.yml index 2511e6f..bb0e883 100644 --- a/roles/syncthing/tasks/main.yml +++ b/roles/syncthing/tasks/main.yml @@ -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 }}"