mirror of
https://gitlab.sectorq.eu/jaydee/ansible.git
synced 2025-01-23 20:39:26 +00:00
upt playbook
This commit is contained in:
parent
bb550998c6
commit
50ee31da89
@ -7,5 +7,5 @@
|
||||
msg: play1
|
||||
|
||||
- name: Test
|
||||
command: free
|
||||
command: nvram get vts_rulelist
|
||||
when: inventory_hostname in groups['router']
|
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user