From 8556fd46dd7982257fac0e2210873b1eee4caade Mon Sep 17 00:00:00 2001 From: jaydee Date: Wed, 1 Nov 2023 01:53:49 +0100 Subject: [PATCH] upt playbook --- playbooks/mailu_switch_to_primary.yaml | 28 ++++++++++++++------------ 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/playbooks/mailu_switch_to_primary.yaml b/playbooks/mailu_switch_to_primary.yaml index 8d33c46..a3da48f 100644 --- a/playbooks/mailu_switch_to_primary.yaml +++ b/playbooks/mailu_switch_to_primary.yaml @@ -3,6 +3,19 @@ ignore_unreachable: false vars: arch_name: docker_mailu2_data + containers: + - nginx-app-1 + - heimdall + - mailu2-admin-1 + - mailu2-antispam-1 + - mailu2-antivirus-1 + - mailu2-fetchmail-1 + - mailu2-front-1 + - mailu2-imap-1 + - mailu2-oletools-1 + - mailu2-redis-1 + - mailu2-resolver-1 + - mailu2-smtp-1 tasks: - name: Get ruleset @@ -41,19 +54,8 @@ # - 180 - name: Stop mailu containers - command: docker pause {{ item }} + command: "docker pause {{ containers | join(' ') }}" become: true when: inventory_hostname in groups['raspberry'] loop: - - nginx-app-1 - - heimdall - - mailu2-admin-1 - - mailu2-antispam-1 - - mailu2-antivirus-1 - - mailu2-fetchmail-1 - - mailu2-front-1 - - mailu2-imap-1 - - mailu2-oletools-1 - - mailu2-redis-1 - - mailu2-resolver-1 - - mailu2-smtp-1 \ No newline at end of file + \ No newline at end of file