From 91adde523e22b5881c248a446d834002f947cc49 Mon Sep 17 00:00:00 2001 From: jaydee Date: Sun, 10 Nov 2024 22:09:39 +0100 Subject: [PATCH] bitwarden --- playbooks/restore_container.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 playbooks/restore_container.yaml diff --git a/playbooks/restore_container.yaml b/playbooks/restore_container.yaml new file mode 100644 index 0000000..92fc02f --- /dev/null +++ b/playbooks/restore_container.yaml @@ -0,0 +1,10 @@ +- hosts: nas + name: Sync mailu + ignore_unreachable: false + tasks: + - name: Syncing all + ansible.builtin.shell: 'rsync -avh --delete root@192.168.77.219:/srv/dev-disk-by-uuid-02fbe97a-cd9a-4511-8bd5-21f8516353ee/latest/{{ item }} 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 in groups['nas'] + loop: "{{ CONTAINERS }}" \ No newline at end of file