|
290 | 290 | method: POST |
291 | 291 | path: "{{ vpc_create_path[controller_version] }}" |
292 | 292 | json_data: |
293 | | - "{{ vpc_vxlan_data | to_json}}" |
| 293 | + "{{ vpc_vxlan_data | to_json }}" |
294 | 294 | register: result |
295 | | - when: (vxlan_vpc_create == True) |
| 295 | + when: (vxlan_vpc_create | bool) |
296 | 296 | ignore_errors: true |
297 | 297 |
|
298 | 298 | - name: Wait for 10 secs |
299 | 299 | ansible.builtin.wait_for: |
300 | 300 | timeout: 10 |
301 | | - when: (vxlan_vpc_create == True) |
| 301 | + when: (vxlan_vpc_create | bool) |
302 | 302 |
|
303 | 303 | ############################################## |
304 | 304 | ## CONFIG SAVE ## |
|
309 | 309 | method: POST |
310 | 310 | path: "{{ vxlan_config_save_path[controller_version] }}" |
311 | 311 | register: result |
312 | | - when: (vxlan_vpc_create == True) |
| 312 | + when: (vxlan_vpc_create | bool) |
313 | 313 | ignore_errors: true |
314 | 314 |
|
315 | 315 | ############################################## |
|
324 | 324 | with_sequence: count=1 |
325 | 325 | loop_control: |
326 | 326 | pause: 5 |
327 | | - when: (vxlan_vpc_deploy == True) |
| 327 | + when: (vxlan_vpc_deploy | bool) |
328 | 328 | ignore_errors: true |
329 | 329 |
|
330 | 330 | - name: Wait for 30 secs |
331 | 331 | ansible.builtin.wait_for: |
332 | 332 | timeout: 30 |
333 | | - when: (vxlan_vpc_deploy == True) |
| 333 | + when: (vxlan_vpc_deploy | bool) |
334 | 334 |
|
335 | 335 | ############################################## |
336 | 336 | ## CREATE CXT VPC PAIR ## |
|
341 | 341 | method: POST |
342 | 342 | path: "{{ vpc_create_path[controller_version] }}" |
343 | 343 | json_data: |
344 | | - "{{ vpc_cxt_data | to_json}}" |
| 344 | + "{{ vpc_cxt_data | to_json }}" |
345 | 345 | register: result |
346 | | - when: (cxt_vpc_create == True) |
| 346 | + when: (cxt_vpc_create | bool) |
347 | 347 | ignore_errors: true |
348 | 348 |
|
349 | 349 | - name: Wait for 20 secs |
350 | 350 | ansible.builtin.wait_for: |
351 | 351 | timeout: 10 |
352 | | - when: (cxt_vpc_create == True) |
| 352 | + when: (cxt_vpc_create | bool) |
353 | 353 |
|
354 | 354 | ############################################## |
355 | 355 | ## CONFIG SAVE ## |
|
360 | 360 | method: POST |
361 | 361 | path: "{{ cxt_config_save_path[controller_version] }}" |
362 | 362 | register: result |
363 | | - when: (cxt_vpc_create == True) |
| 363 | + when: (cxt_vpc_create | bool) |
364 | 364 | ignore_errors: true |
365 | 365 |
|
366 | 366 | ############################################## |
|
375 | 375 | with_sequence: count=1 |
376 | 376 | loop_control: |
377 | 377 | pause: 5 |
378 | | - when: (cxt_vpc_deploy == True) |
| 378 | + when: (cxt_vpc_deploy | bool) |
379 | 379 | ignore_errors: true |
380 | 380 |
|
381 | 381 | - name: Wait for 30 secs |
382 | 382 | ansible.builtin.wait_for: |
383 | 383 | timeout: 30 |
384 | | - when: (cxt_vpc_deploy == True) |
| 384 | + when: (cxt_vpc_deploy | bool) |
0 commit comments