From c1cb93d828c3b07f4be272c408f3d00308fcd230 Mon Sep 17 00:00:00 2001 From: jaydee Date: Wed, 1 Nov 2023 01:30:32 +0100 Subject: [PATCH] upt playbook --- playbooks/mailu_switch_to_second.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/playbooks/mailu_switch_to_second.yaml b/playbooks/mailu_switch_to_second.yaml index ebb965c..da6bb76 100644 --- a/playbooks/mailu_switch_to_second.yaml +++ b/playbooks/mailu_switch_to_second.yaml @@ -1,5 +1,6 @@ - hosts: containers - name: Stop mailu + name: Switch to primary + ignore_unreachable: false vars: arch_name: docker_mailu2_data @@ -23,6 +24,7 @@ # - 180 - name: Start mailu containers command: docker start {{ item }} + become: true when: inventory_hostname in groups['raspberry'] loop: - nginx-app-1 @@ -37,7 +39,7 @@ - mailu2-redis-1 - mailu2-resolver-1 - mailu2-smtp-1 - + - name: Get ruleset command: nvram get vts_rulelist when: inventory_hostname in groups['router']