Skip to content

Commit ce0853a

Browse files
Britton, NicholasBritton, Nicholas
authored andcommitted
Update vmware_resourcelimits.yml
Updated to one call
1 parent cd17c13 commit ce0853a

1 file changed

Lines changed: 9 additions & 50 deletions

File tree

Lines changed: 9 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,71 +1,30 @@
1-
2-
31
---
4-
- name: vmware resource limits - vCenter
2+
- name: vmware resource limits
53
uri:
64
url: "{{baseurl}}config/resource-limits"
75
method: POST
86
body_format: json
9-
status_code: 201
7+
status_code: 204
108
headers:
119
authorization: "{{login.json.token}}"
1210
content-type: application/vnd.netbackup+json;version=3.0
1311
body:
1412
data:
15-
type: resource-limits
13+
- type: resource-limits
14+
id: vmware
1615
attributes:
1716
resources:
18-
resourceType: vCenter
17+
- resourceType: vCenter
1918
resourceLimit: 50
20-
validate_certs: no
21-
return_content: yes
22-
register: vmware_resource
23-
- name: debug vmware_resource
24-
debug:
25-
msg: "{{vmware_resource}}"
26-
27-
- name: vmware resource limits - ESXserver
28-
uri:
29-
url: "{{baseurl}}config/resource-limits"
30-
method: POST
31-
body_format: json
32-
status_code: 201
33-
headers:
34-
authorization: "{{login.json.token}}"
35-
content-type: application/vnd.netbackup+json;version=3.0
36-
body:
37-
data:
38-
type: resource-limits
39-
attributes:
40-
resources:
41-
resourceType: ESXserver
19+
- resourceType: ESXserver
4220
resourceLimit: 2
43-
validate_certs: no
44-
return_content: yes
45-
register: vmware_resource
46-
- name: debug vmware_resource
47-
debug:
48-
msg: "{{vmware_resource}}"
49-
50-
- name: vmware resource limits - Datastore
51-
uri:
52-
url: "{{baseurl}}config/resource-limits"
53-
method: POST
54-
body_format: json
55-
status_code: 201
56-
headers:
57-
authorization: "{{login.json.token}}"
58-
content-type: application/vnd.netbackup+json;version=3.0
59-
body:
60-
data:
61-
type: resource-limits
62-
attributes:
63-
resources:
64-
resourceType: Datastore
21+
- resourceType: Datastore
6522
resourceLimit: 2
23+
6624
validate_certs: no
6725
return_content: yes
6826
register: vmware_resource
6927
- name: debug vmware_resource
7028
debug:
7129
msg: "{{vmware_resource}}"
30+

0 commit comments

Comments
 (0)