From 3da4715190ac774d0ed0e556e7a554a1c7519a8a Mon Sep 17 00:00:00 2001 From: jaydee Date: Thu, 14 Nov 2024 12:32:11 +0100 Subject: [PATCH] bitwarden --- playbooks/sync_all_test.yaml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/playbooks/sync_all_test.yaml b/playbooks/sync_all_test.yaml index fa5b231..398886c 100644 --- a/playbooks/sync_all_test.yaml +++ b/playbooks/sync_all_test.yaml @@ -6,8 +6,16 @@ - debug: msg: "{{ item }}" loop: "{{ selected_containers | split(',') }}" - when: inventory_hostname in groups['morefine-server'] - + when: inventory_hostname == destination_server - debug: - msg: "{{ selected_host }}" - when: inventory_hostname in groups['morefine-server'] \ No newline at end of file + msg: "{{ destination_server }}" + when: inventory_hostname == destination_server + - debug: + msg: "{{ source_server }}" + when: inventory_hostname == destination_server + - 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 + - debug: + msg: "{{ destination_server }}" + when: inventory_hostname == destination_server \ No newline at end of file