From 488ff88872dde3e2e963400b627299d20cad992e Mon Sep 17 00:00:00 2001 From: jaydee Date: Wed, 27 Sep 2023 07:56:54 +0200 Subject: [PATCH] upt playbook --- playbooks/sync_mailu2_data.yaml | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 playbooks/sync_mailu2_data.yaml diff --git a/playbooks/sync_mailu2_data.yaml b/playbooks/sync_mailu2_data.yaml new file mode 100644 index 0000000..331e1e7 --- /dev/null +++ b/playbooks/sync_mailu2_data.yaml @@ -0,0 +1,7 @@ +- hosts: containers + name: Sync mailu + ignore_unreachable: false + tasks: + - name: Syncing mailu + ansible.builtin.shell: 'rsync -ra /share/docker_data/mailu2/* admin@192.168.77.246:/share/docker_data/mailu2' + when: inventory_hostname in groups['nas'] \ No newline at end of file