|
1 | 1 | --- |
2 | 2 | - name: test fail missing params |
3 | 3 | cs_host: |
| 4 | + zone: "{{ cs_common_zone_basic }}" |
4 | 5 | register: host |
5 | 6 | ignore_errors: true |
6 | 7 | - name: verify test fail missing url if host is not existent |
|
12 | 13 | - name: test fail missing params if host is not existent |
13 | 14 | cs_host: |
14 | 15 | name: sim |
| 16 | + zone: "{{ cs_common_zone_basic }}" |
15 | 17 | register: host |
16 | 18 | ignore_errors: true |
17 | 19 | - name: verify test fail missing params if host is not existent |
|
23 | 25 | - name: test create a host in check mode |
24 | 26 | cs_host: |
25 | 27 | name: sim |
| 28 | + zone: "{{ cs_common_zone_basic }}" |
26 | 29 | url: "http://sim/c0-basic/h2" |
27 | 30 | cluster: C0-basic |
28 | 31 | pod: POD0-basic |
|
43 | 46 | - name: test create a host |
44 | 47 | cs_host: |
45 | 48 | name: sim |
| 49 | + zone: "{{ cs_common_zone_basic }}" |
46 | 50 | url: "http://sim/c0-basic/h2" |
47 | 51 | cluster: C0-basic |
48 | 52 | pod: POD0-basic |
|
77 | 81 | - name: test create a host idempotence |
78 | 82 | cs_host: |
79 | 83 | name: "{{ host_hostname }}" |
| 84 | + zone: "{{ cs_common_zone_basic }}" |
80 | 85 | url: "http://sim/c0-basic/h2" |
81 | 86 | cluster: C0-basic |
82 | 87 | pod: POD0-basic |
|
104 | 109 | - name: test update host in check mode |
105 | 110 | cs_host: |
106 | 111 | name: "{{ host_hostname }}" |
| 112 | + zone: "{{ cs_common_zone_basic }}" |
107 | 113 | url: "http://sim/c0-basic/h2" |
108 | 114 | cluster: C0-basic |
109 | 115 | pod: POD0-basic |
|
133 | 139 | - name: test update host |
134 | 140 | cs_host: |
135 | 141 | name: "{{ host_hostname }}" |
| 142 | + zone: "{{ cs_common_zone_basic }}" |
136 | 143 | url: "http://sim/c0-basic/h2" |
137 | 144 | cluster: C0-basic |
138 | 145 | pod: POD0-basic |
|
161 | 168 | - name: test update host idempotence |
162 | 169 | cs_host: |
163 | 170 | name: "{{ host_hostname }}" |
| 171 | + zone: "{{ cs_common_zone_basic }}" |
164 | 172 | url: "http://sim/c0-basic/h2" |
165 | 173 | cluster: C0-basic |
166 | 174 | pod: POD0-basic |
|
190 | 198 | - name: test update host remove host_tags |
191 | 199 | cs_host: |
192 | 200 | name: "{{ host_hostname }}" |
| 201 | + zone: "{{ cs_common_zone_basic }}" |
193 | 202 | url: "http://sim/c0-basic/h2" |
194 | 203 | cluster: C0-basic |
195 | 204 | pod: POD0-basic |
|
218 | 227 | - name: test update host remove host_tags idempotence |
219 | 228 | cs_host: |
220 | 229 | name: "{{ host_hostname }}" |
| 230 | + zone: "{{ cs_common_zone_basic }}" |
221 | 231 | url: "http://sim/c0-basic/h2" |
222 | 232 | cluster: C0-basic |
223 | 233 | pod: POD0-basic |
|
246 | 256 | - name: test put host in maintenance in check mode |
247 | 257 | cs_host: |
248 | 258 | name: "{{ host_hostname }}" |
| 259 | + zone: "{{ cs_common_zone_basic }}" |
249 | 260 | cluster: C0-basic |
250 | 261 | pod: POD0-basic |
251 | 262 | allocation_state: maintenance |
|
267 | 278 | - name: test put host in maintenance |
268 | 279 | cs_host: |
269 | 280 | name: "{{ host_hostname }}" |
| 281 | + zone: "{{ cs_common_zone_basic }}" |
270 | 282 | cluster: C0-basic |
271 | 283 | pod: POD0-basic |
272 | 284 | allocation_state: maintenance |
|
287 | 299 | - name: test put host in maintenance idempotence |
288 | 300 | cs_host: |
289 | 301 | name: "{{ host_hostname }}" |
| 302 | + zone: "{{ cs_common_zone_basic }}" |
290 | 303 | cluster: C0-basic |
291 | 304 | pod: POD0-basic |
292 | 305 | allocation_state: maintenance |
|
307 | 320 | - name: test put host out of maintenance in check mode |
308 | 321 | cs_host: |
309 | 322 | name: "{{ host_hostname }}" |
| 323 | + zone: "{{ cs_common_zone_basic }}" |
310 | 324 | cluster: C0-basic |
311 | 325 | pod: POD0-basic |
312 | 326 | allocation_state: enabled |
|
328 | 342 | - name: test put host out of maintenance |
329 | 343 | cs_host: |
330 | 344 | name: "{{ host_hostname }}" |
| 345 | + zone: "{{ cs_common_zone_basic }}" |
331 | 346 | cluster: C0-basic |
332 | 347 | pod: POD0-basic |
333 | 348 | allocation_state: enabled |
|
348 | 363 | - name: test put host out of maintenance idempotence |
349 | 364 | cs_host: |
350 | 365 | name: "{{ host_hostname }}" |
| 366 | + zone: "{{ cs_common_zone_basic }}" |
351 | 367 | cluster: C0-basic |
352 | 368 | pod: POD0-basic |
353 | 369 | allocation_state: enabled |
|
368 | 384 | - name: test remove host in check mode |
369 | 385 | cs_host: |
370 | 386 | name: "{{ host_hostname }}" |
| 387 | + zone: "{{ cs_common_zone_basic }}" |
371 | 388 | cluster: C0-basic |
372 | 389 | pod: POD0-basic |
373 | 390 | state: absent |
|
389 | 406 | - name: test remove host |
390 | 407 | cs_host: |
391 | 408 | name: "{{ host_hostname }}" |
| 409 | + zone: "{{ cs_common_zone_basic }}" |
392 | 410 | cluster: C0-basic |
393 | 411 | pod: POD0-basic |
394 | 412 | state: absent |
|
409 | 427 | - name: test remove host idempotence |
410 | 428 | cs_host: |
411 | 429 | name: "{{ host_hostname }}" |
| 430 | + zone: "{{ cs_common_zone_basic }}" |
412 | 431 | cluster: C0-basic |
413 | 432 | pod: POD0-basic |
414 | 433 | state: absent |
|
0 commit comments