diff --git a/playbooks/mailu_switch_to_primary.yaml b/playbooks/mailu_switch_to_primary.yaml index a8dcb64..4a67b12 100644 --- a/playbooks/mailu_switch_to_primary.yaml +++ b/playbooks/mailu_switch_to_primary.yaml @@ -44,6 +44,8 @@ command: docker pause {{ item }} when: inventory_hostname in groups['raspberry'] loop: + - nginx-app-1 + - heimdall - mailu2-admin-1 - mailu2-antispam-1 - mailu2-antivirus-1 diff --git a/playbooks/mailu_switch_to_second.yaml b/playbooks/mailu_switch_to_second.yaml index 545db67..ebb965c 100644 --- a/playbooks/mailu_switch_to_second.yaml +++ b/playbooks/mailu_switch_to_second.yaml @@ -4,24 +4,40 @@ vars: arch_name: docker_mailu2_data tasks: - - name: Start mailu rasp - uri: - url: "http://192.168.77.106:9000/api/stacks/{{ item }}/start?endpointId=13" - method: POST - body_format: form-urlencoded - return_content: yes - headers: - Content-Type: "application/json" - X-API-Key: "ptr_DfS2M6Fj2P3fVvYpkhE0KJh2UGCzY47ePaFaLqadsjg=" - timeout: 60 - ignore_errors: yes - when: inventory_hostname in groups['nas'] + # - name: Start mailu rasp + # uri: + # url: "http://192.168.77.106:9000/api/stacks/{{ item }}/start?endpointId=13" + # method: POST + # body_format: form-urlencoded + # return_content: yes + # headers: + # Content-Type: "application/json" + # X-API-Key: "ptr_DfS2M6Fj2P3fVvYpkhE0KJh2UGCzY47ePaFaLqadsjg=" + # timeout: 60 + # ignore_errors: yes + # when: inventory_hostname in groups['nas'] + # loop: + # - 130 + # - 149 + # #- 140 + # - 180 + - name: Start mailu containers + command: docker start {{ item }} + when: inventory_hostname in groups['raspberry'] loop: - - 130 - - 149 - #- 140 - - 180 - + - 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 + - name: Get ruleset command: nvram get vts_rulelist when: inventory_hostname in groups['router']