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
a20cb57317
commit
d7e0303864
@ -4,7 +4,7 @@
|
||||
tasks:
|
||||
- name: Start mailu rasp
|
||||
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
|
||||
body_format: form-urlencoded
|
||||
return_content: yes
|
||||
@ -14,6 +14,10 @@
|
||||
timeout: 60
|
||||
ignore_errors: yes
|
||||
when: inventory_hostname in groups['nas']
|
||||
loop:
|
||||
- 130
|
||||
- 149
|
||||
- 140
|
||||
|
||||
- name: Get ruleset
|
||||
command: nvram get vts_rulelist
|
||||
@ -91,7 +95,7 @@
|
||||
|
||||
- name: Stop mailu rhasp
|
||||
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
|
||||
body_format: form-urlencoded
|
||||
return_content: yes
|
||||
@ -101,7 +105,11 @@
|
||||
timeout: 60
|
||||
register: result
|
||||
when: inventory_hostname in groups['nas']
|
||||
|
||||
loop:
|
||||
- 130
|
||||
- 149
|
||||
- 140
|
||||
|
||||
- name: Copy archive
|
||||
ansible.builtin.shell: 'scp /share/Data/dockers-{{ ansible_date_time.date }}.tar.gz admin@192.168.77.246:/tmp/'
|
||||
when: inventory_hostname in groups['nas']
|
||||
|
Loading…
x
Reference in New Issue
Block a user