mirror of
https://gitlab.sectorq.eu/jaydee/ansible.git
synced 2025-01-24 04:49:26 +00:00
upt playbook
This commit is contained in:
parent
a20cb57317
commit
d7e0303864
@ -4,7 +4,7 @@
|
|||||||
tasks:
|
tasks:
|
||||||
- name: Start mailu rasp
|
- name: Start mailu rasp
|
||||||
uri:
|
uri:
|
||||||
url: "http://192.168.77.106:9000/api/stacks/130/start?endpointId=13"
|
url: "http://192.168.77.106:9000/api/stacks/{{ item }}/start?endpointId=13"
|
||||||
method: POST
|
method: POST
|
||||||
body_format: form-urlencoded
|
body_format: form-urlencoded
|
||||||
return_content: yes
|
return_content: yes
|
||||||
@ -14,6 +14,10 @@
|
|||||||
timeout: 60
|
timeout: 60
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
when: inventory_hostname in groups['nas']
|
when: inventory_hostname in groups['nas']
|
||||||
|
loop:
|
||||||
|
- 130
|
||||||
|
- 149
|
||||||
|
- 140
|
||||||
|
|
||||||
- name: Get ruleset
|
- name: Get ruleset
|
||||||
command: nvram get vts_rulelist
|
command: nvram get vts_rulelist
|
||||||
@ -91,7 +95,7 @@
|
|||||||
|
|
||||||
- name: Stop mailu rhasp
|
- name: Stop mailu rhasp
|
||||||
uri:
|
uri:
|
||||||
url: "http://192.168.77.106:9000/api/stacks/130/stop?endpointId=13"
|
url: "http://192.168.77.106:9000/api/stacks/{{ item }}/stop?endpointId=13"
|
||||||
method: POST
|
method: POST
|
||||||
body_format: form-urlencoded
|
body_format: form-urlencoded
|
||||||
return_content: yes
|
return_content: yes
|
||||||
@ -101,6 +105,10 @@
|
|||||||
timeout: 60
|
timeout: 60
|
||||||
register: result
|
register: result
|
||||||
when: inventory_hostname in groups['nas']
|
when: inventory_hostname in groups['nas']
|
||||||
|
loop:
|
||||||
|
- 130
|
||||||
|
- 149
|
||||||
|
- 140
|
||||||
|
|
||||||
- name: Copy archive
|
- name: Copy archive
|
||||||
ansible.builtin.shell: 'scp /share/Data/dockers-{{ ansible_date_time.date }}.tar.gz admin@192.168.77.246:/tmp/'
|
ansible.builtin.shell: 'scp /share/Data/dockers-{{ ansible_date_time.date }}.tar.gz admin@192.168.77.246:/tmp/'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user