upt playbook

This commit is contained in:
jaydee 2023-08-30 10:25:18 +02:00
parent a20cb57317
commit d7e0303864

View File

@ -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']