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