From 636aafa3929a598c5b3f1522848d0502c6415d67 Mon Sep 17 00:00:00 2001 From: jaydee Date: Fri, 15 Nov 2024 13:30:36 +0100 Subject: [PATCH] bitwarden --- playbooks/sync_container_data.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playbooks/sync_container_data.yaml b/playbooks/sync_container_data.yaml index f09378b..5a4ca30 100644 --- a/playbooks/sync_container_data.yaml +++ b/playbooks/sync_container_data.yaml @@ -8,7 +8,7 @@ when: inventory_hostname == source_server and selected_containers|split(",")|length > 1 - debug: msg: rsync -avh --delete /share/docker_data/{{ selected_containers }} root@{{ destination_server }}:/share/docker_data/ --exclude="home-assistant.log*" --exclude="gitlab/logs/*" - when: inventory_hostname == source_server and selected_containers|split(",")|length = 1 + when: inventory_hostname == source_server and selected_containers|split(",")|length == 1 - name: Syncing all ansible.builtin.shell: rsync -avh --delete /share/docker_data/{{ '{' }}{{ selected_containers }}{{ '{' }} root@{{ destination_server }}:/share/docker_data/ --exclude="home-assistant.log*" --exclude="gitlab/logs/*"