diff --git a/playbooks/97_test.yml b/playbooks/97_test.yml index 30a01ca..ae96fc7 100644 --- a/playbooks/97_test.yml +++ b/playbooks/97_test.yml @@ -7,5 +7,5 @@ msg: play1 - name: Test - command: free + command: nvram get vts_rulelist when: inventory_hostname in groups['router'] \ No newline at end of file diff --git a/playbooks/sync.yaml b/playbooks/sync.yaml index 4eca5cd..d99320c 100644 --- a/playbooks/sync.yaml +++ b/playbooks/sync.yaml @@ -14,7 +14,7 @@ register: result ignore_errors: yes when: inventory_hostname in groups['nas'] - - name: Start mailu rhasp + - name: Start mailu rasp uri: url: "http://192.168.77.106:9000/api/stacks/130/start?endpointId=13" method: POST @@ -40,9 +40,16 @@ register: result 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"