upt playbook

This commit is contained in:
jaydee 2023-08-21 10:12:49 +02:00
parent 0fe4d212af
commit f587494d16

View File

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