diff --git a/playbooks/sync_mailu.yaml b/playbooks/sync_mailu.yaml index 1887fb5..fbe69df 100644 --- a/playbooks/sync_mailu.yaml +++ b/playbooks/sync_mailu.yaml @@ -1,6 +1,7 @@ - hosts: containers name: Stop mailu ignore_unreachable: false + become: true vars: arch_name: docker_mailu2_data tasks: @@ -141,4 +142,6 @@ path: /share/docker_data/mailu2/ owner: admin group: administrators - recurse: yes \ No newline at end of file + recurse: yes + become: true + when: inventory_hostname in groups['raspberry'] \ No newline at end of file