From f587494d1667f32e85d35d8862d9fad83613e3fc Mon Sep 17 00:00:00 2001 From: jaydee Date: Mon, 21 Aug 2023 10:12:49 +0200 Subject: [PATCH] upt playbook --- playbooks/sync.yaml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/playbooks/sync.yaml b/playbooks/sync.yaml index 4efa4db..db21300 100644 --- a/playbooks/sync.yaml +++ b/playbooks/sync.yaml @@ -14,6 +14,7 @@ register: result ignore_errors: yes when: inventory_hostname in groups['nas'] + - name: Start mailu rasp uri: url: "http://192.168.77.106:9000/api/stacks/130/start?endpointId=13" @@ -42,6 +43,9 @@ command: nvram commit when: inventory_hostname in groups['router'] + - name: Restart firewall + command: service restart_firewall + when: inventory_hostname in groups['router'] - name: Stop mailu main uri: @@ -57,15 +61,11 @@ ignore_errors: yes when: inventory_hostname in groups['nas'] - - name: Create archive - ansible.builtin.shell: 'tar -czf /share/Data/dockers.tar.gz /share/docker_data/{mailu2,webhub,ha} --exclude="/ha/backups/*" --exclude="home-assistant.log*"' - ignore_errors: yes - when: inventory_hostname in groups['router'] - - name: Create archive ansible.builtin.shell: 'tar -czf /share/Data/dockers.tar.gz /share/docker_data/{mailu2,webhub,ha} --exclude="/ha/backups/*" --exclude="home-assistant.log*"' ignore_errors: yes when: inventory_hostname in groups['nas'] + - name: Start HA uri: url: "http://192.168.77.106:9000/api/stacks/2/start?endpointId=2" @@ -79,6 +79,7 @@ register: result ignore_errors: yes when: inventory_hostname in groups['nas'] + - name: Start mailu main uri: url: "http://192.168.77.106:9000/api/stacks/108/start?endpointId=2" @@ -101,6 +102,9 @@ command: nvram commit when: inventory_hostname in groups['router'] + - name: Restart firewall + command: service restart_firewall + when: inventory_hostname in groups['router'] - name: Stop mailu rhasp uri: