diff --git a/playbooks/sync_mailu2_data.yaml b/playbooks/sync_mailu2_data.yaml index 5d736f9..3e352b3 100644 --- a/playbooks/sync_mailu2_data.yaml +++ b/playbooks/sync_mailu2_data.yaml @@ -1,7 +1,11 @@ -- hosts: 192.168.77.106 +- hosts: containers name: Sync mailu ignore_unreachable: false tasks: + - name: Syncing mailu + ansible.builtin.shell: 'chown -R admin. /share/docker_data/mailu2' + become: true + when: inventory_hostname in groups['raspberry'] - 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