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
0fe4d212af
commit
f587494d16
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user