diff --git a/playbooks/sync.yaml b/playbooks/sync.yaml index e6dd813..4efa4db 100644 --- a/playbooks/sync.yaml +++ b/playbooks/sync.yaml @@ -27,6 +27,22 @@ register: result ignore_errors: yes when: inventory_hostname in groups['nas'] + + + - name: Test + command: nvram get vts_rulelist + when: inventory_hostname in groups['router'] + register: result + + - name: Test + command: nvram set vts_rulelist="{{ result.stdout | replace('192.168.77.106', '192.168.77.246') }}" + when: inventory_hostname in groups['router'] + + - name: Test + command: nvram commit + when: inventory_hostname in groups['router'] + + - name: Stop mailu main uri: url: "http://192.168.77.106:9000/api/stacks/108/stop?endpointId=2" @@ -76,6 +92,16 @@ register: result ignore_errors: yes when: inventory_hostname in groups['nas'] + + - name: Test + command: nvram set vts_rulelist="{{ result.stdout }}" + when: inventory_hostname in groups['router'] + + - name: Test + command: nvram commit + when: inventory_hostname in groups['router'] + + - name: Stop mailu rhasp uri: url: "http://192.168.77.106:9000/api/stacks/130/stop?endpointId=13"