upt playbook

This commit is contained in:
jaydee 2023-08-21 10:03:57 +02:00
parent d10852241a
commit 0fe4d212af

View File

@ -27,6 +27,22 @@
register: result
ignore_errors: yes
when: inventory_hostname in groups['nas']
- name: Test
command: nvram get vts_rulelist
when: inventory_hostname in groups['router']
register: result
- name: Test
command: nvram set vts_rulelist="{{ result.stdout | replace('192.168.77.106', '192.168.77.246') }}"
when: inventory_hostname in groups['router']
- name: Test
command: nvram commit
when: inventory_hostname in groups['router']
- name: Stop mailu main
uri:
url: "http://192.168.77.106:9000/api/stacks/108/stop?endpointId=2"
@ -76,6 +92,16 @@
register: result
ignore_errors: yes
when: inventory_hostname in groups['nas']
- name: Test
command: nvram set vts_rulelist="{{ result.stdout }}"
when: inventory_hostname in groups['router']
- name: Test
command: nvram commit
when: inventory_hostname in groups['router']
- name: Stop mailu rhasp
uri:
url: "http://192.168.77.106:9000/api/stacks/130/stop?endpointId=13"