diff --git a/playbooks/sync_all.yaml b/playbooks/sync_all.yaml index e108236..e34b0b0 100644 --- a/playbooks/sync_all.yaml +++ b/playbooks/sync_all.yaml @@ -8,9 +8,11 @@ name: - sqlite3 state: present + update_cache: yes become: true - update_cache: yes + when: inventory_hostname == destination_server + - include_tasks: stop_containers.yaml name: Stop Containers when: inventory_hostname == destination_server