diff --git a/playbooks/mailu_switch_to_primary.yaml b/playbooks/mailu_switch_to_primary.yaml index 4a67b12..45dc4b1 100644 --- a/playbooks/mailu_switch_to_primary.yaml +++ b/playbooks/mailu_switch_to_primary.yaml @@ -42,6 +42,7 @@ - name: Stop mailu containers command: docker pause {{ item }} + become: true when: inventory_hostname in groups['raspberry'] loop: - nginx-app-1