diff --git a/playbooks/sync_all_test.yaml b/playbooks/sync_all_test.yaml index 398886c..463ce61 100644 --- a/playbooks/sync_all_test.yaml +++ b/playbooks/sync_all_test.yaml @@ -1,21 +1,17 @@ --- - name: import a task - hosts: containers + hosts: nas gather_facts: false tasks: - debug: msg: "{{ item }}" loop: "{{ selected_containers | split(',') }}" - when: inventory_hostname == destination_server - debug: 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