diff --git a/playbooks/sync_all.yaml b/playbooks/sync_all.yaml index 1f5af94..c2339ed 100644 --- a/playbooks/sync_all.yaml +++ b/playbooks/sync_all.yaml @@ -19,7 +19,7 @@ - include_tasks: stop_containers.yaml name: Stop Containers - when: inventory_hostname == destination_server + when: inventory_hostname == destination_server or inventory_hostname == source_server - name: Pause for 60 seconds ansible.builtin.pause: @@ -87,7 +87,7 @@ ignore_errors: true become: true register: result - when: inventory_hostname == destination_server + when: inventory_hostname == destination_server or inventory_hostname == source_server # - name: Get relevant configs # ansible.builtin.shell: 'docker restart gitlab' # ignore_errors: yes