upt playbook

This commit is contained in:
jaydee 2023-08-21 09:46:04 +02:00
parent bb550998c6
commit 50ee31da89
2 changed files with 9 additions and 2 deletions

View File

@ -7,5 +7,5 @@
msg: play1
- name: Test
command: free
command: nvram get vts_rulelist
when: inventory_hostname in groups['router']

View File

@ -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"