diff --git a/playbooks/sync_container_data.yaml b/playbooks/sync_container_data.yaml index 30620ae..a5c1756 100644 --- a/playbooks/sync_container_data.yaml +++ b/playbooks/sync_container_data.yaml @@ -4,11 +4,11 @@ become: true 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/*"' + 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 - + - 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/*"' + ansible.builtin.shell: rsync -avh --delete /share/docker_data/{{ '{' }}{{ selected_containers }}{{ '{' }} root@{{ destination_server }}:/share/docker_data/ --exclude="home-assistant.log*" --exclude="gitlab/logs/*" #ansible.builtin.shell: 'rsync -avh --delete /share/docker_data/{mailu2,webhub,nginx,heimdall} root@192.168.77.238:/share/docker_data/ --exclude="home-assistant.log*" --exclude="gitlab/logs/*"' #ansible.builtin.shell: 'ls -la' when: inventory_hostname == source_server \ No newline at end of file