Debian Codegraph @

ansible_collections/community/aws/tests/integration/targets/elasticache_subnet_group/tasks/main.yml

raw
1 ---
2 # elasticache_subnet_group integration tests
3 #
4 # Current module limitations:
5 # - check_mode not supported
6 # - Tagging not supported
7 # - Returned values *very* limited (almost none)
8 #
9 - module_defaults:
10 group/aws:
11 access_key: '{{ aws_access_key }}'
12 secret_key: '{{ aws_secret_key }}'
13 session_token: '{{ security_token | default(omit) }}'
14 region: '{{ aws_region }}'
15 block:
16
17 # ============================================================
18
19 - name: Create Subnet Group with no subnets - check_mode
20 elasticache_subnet_group:
21 state: present
22 name: '{{ group_name }}'
23 check_mode: True
24 register: create_group
25 ignore_errors: True
26
27 - name: Check result - Create Subnet Group with no subnets - check_mode
28 assert:
29 that:
30 - create_group is failed
31 # Check we caught the issue before trying to create
32 - '"CreateCacheSubnetGroup" not in create_group.resource_actions'
33 # Check that we don't refer to the boto3 parameter
34 - '"SubnetIds" not in create_group.msg'
35 # Loosely check the message
36 - '"subnet" in create_group.msg'
37 - '"At least" in create_group.msg'
38
39 - name: Create Subnet Group with no subnets
40 elasticache_subnet_group:
41 state: present
42 name: '{{ group_name }}'
43 register: create_group
44 ignore_errors: True
45
46 - name: Check result - Create Subnet Group with no subnets
47 assert:
48 that:
49 - create_group is failed
50 # Check we caught the issue before trying to create
51 - '"CreateCacheSubnetGroup" not in create_group.resource_actions'
52 # Check that we don't refer to the boto3 parameter
53 - '"SubnetIds" not in create_group.msg'
54 # Loosely check the message
55 - '"subnet" in create_group.msg'
56 - '"At least" in create_group.msg'
57
58 # ============================================================
59 # Setup infra needed for tests
60 - name: create a VPC
61 ec2_vpc_net:
62 state: present
63 name: '{{ vpc_name }}'
64 cidr_block: '{{ vpc_cidr }}'
65 tags:
66 TestPrefix: '{{ resource_prefix }}'
67 register: vpc_result
68
69 - name: create subnets
70 ec2_vpc_subnet:
71 state: present
72 cidr: '{{ item.cidr }}'
73 az: '{{ item.zone }}'
74 vpc_id: '{{ vpc_result.vpc.id }}'
75 tags:
76 Name: '{{ item.name }}'
77 TestPrefix: '{{ resource_prefix }}'
78 register: vpc_subnet_create
79 loop:
80 - name: '{{ subnet_name_a }}'
81 cidr: '{{ subnet_cidr_a }}'
82 zone: '{{ subnet_zone_a }}'
83 - name: '{{ subnet_name_b }}'
84 cidr: '{{ subnet_cidr_b }}'
85 zone: '{{ subnet_zone_b }}'
86 - name: '{{ subnet_name_c }}'
87 cidr: '{{ subnet_cidr_c }}'
88 zone: '{{ subnet_zone_c }}'
89 - name: '{{ subnet_name_d }}'
90 cidr: '{{ subnet_cidr_d }}'
91 zone: '{{ subnet_zone_d }}'
92
93 - name: Store IDs of subnets and VPC
94 set_fact:
95 vpc_id: '{{ vpc_result.vpc.id }}'
96 subnet_id_a: '{{ vpc_subnet_create.results[0].subnet.id }}'
97 subnet_id_b: '{{ vpc_subnet_create.results[1].subnet.id }}'
98 subnet_id_c: '{{ vpc_subnet_create.results[2].subnet.id }}'
99 subnet_id_d: '{{ vpc_subnet_create.results[3].subnet.id }}'
100
101 # ============================================================
102
103 - name: Create Subnet Group - check_mode
104 elasticache_subnet_group:
105 state: present
106 name: '{{ group_name }}'
107 description: '{{ description_default }}'
108 subnets:
109 - '{{ subnet_id_a }}'
110 - '{{ subnet_id_b }}'
111 check_mode: True
112 register: create_group
113
114 - name: Check result - Create Subnet Group - check_mode
115 assert:
116 that:
117 - create_group is successful
118 - create_group is changed
119
120 - name: Create Subnet Group
121 elasticache_subnet_group:
122 state: present
123 name: '{{ group_name }}'
124 description: '{{ description_default }}'
125 subnets:
126 - '{{ subnet_id_a }}'
127 - '{{ subnet_id_b }}'
128 register: create_group
129
130 - name: Check result - Create Subnet Group
131 assert:
132 that:
133 - create_group is successful
134 - create_group is changed
135 - '"cache_subnet_group" in create_group'
136 - '"arn" in create_group.cache_subnet_group'
137 - '"description" in create_group.cache_subnet_group'
138 - '"name" in create_group.cache_subnet_group'
139 - '"subnet_ids" in create_group.cache_subnet_group'
140 - '"vpc_id" in create_group.cache_subnet_group'
141 - create_group.cache_subnet_group.description == description_default
142 - create_group.cache_subnet_group.name == group_name
143 - subnet_id_a in create_group.cache_subnet_group.subnet_ids
144 - subnet_id_b in create_group.cache_subnet_group.subnet_ids
145 - subnet_id_c not in create_group.cache_subnet_group.subnet_ids
146 - subnet_id_d not in create_group.cache_subnet_group.subnet_ids
147 - create_group.cache_subnet_group.vpc_id == vpc_id
148 - create_group.cache_subnet_group.arn.startswith('arn:')
149 - create_group.cache_subnet_group.arn.endswith(group_name)
150
151 - name: Create Subnet Group - idempotency - check_mode
152 elasticache_subnet_group:
153 state: present
154 name: '{{ group_name }}'
155 description: '{{ description_default }}'
156 subnets:
157 - '{{ subnet_id_a }}'
158 - '{{ subnet_id_b }}'
159 check_mode: True
160 register: create_group
161
162 - name: Check result - Create Subnet Group - idempotency - check_mode
163 assert:
164 that:
165 - create_group is successful
166 - create_group is not changed
167
168 - name: Create Subnet Group - idempotency
169 elasticache_subnet_group:
170 state: present
171 name: '{{ group_name }}'
172 description: '{{ description_default }}'
173 subnets:
174 - '{{ subnet_id_a }}'
175 - '{{ subnet_id_b }}'
176 register: create_group
177
178 - name: Check result - Create Subnet Group - idempotency
179 assert:
180 that:
181 - create_group is successful
182 - create_group is not changed
183 - '"cache_subnet_group" in create_group'
184 - '"arn" in create_group.cache_subnet_group'
185 - '"description" in create_group.cache_subnet_group'
186 - '"name" in create_group.cache_subnet_group'
187 - '"subnet_ids" in create_group.cache_subnet_group'
188 - '"vpc_id" in create_group.cache_subnet_group'
189 - create_group.cache_subnet_group.description == description_default
190 - create_group.cache_subnet_group.name == group_name
191 - subnet_id_a in create_group.cache_subnet_group.subnet_ids
192 - subnet_id_b in create_group.cache_subnet_group.subnet_ids
193 - subnet_id_c not in create_group.cache_subnet_group.subnet_ids
194 - subnet_id_d not in create_group.cache_subnet_group.subnet_ids
195 - create_group.cache_subnet_group.vpc_id == vpc_id
196 - create_group.cache_subnet_group.arn.startswith('arn:')
197 - create_group.cache_subnet_group.arn.endswith(group_name)
198
199 # ============================================================
200
201 - name: Update Subnet Group Description - check_mode
202 elasticache_subnet_group:
203 state: present
204 name: '{{ group_name }}'
205 description: '{{ description_updated }}'
206 ## No longer mandatory
207 # subnets:
208 # - '{{ subnet_id_a }}'
209 # - '{{ subnet_id_b }}'
210 check_mode: True
211 register: update_description
212
213 - name: Check result - Update Subnet Group Description - check_mode
214 assert:
215 that:
216 - update_description is successful
217 - update_description is changed
218
219 - name: Update Subnet Group Description
220 elasticache_subnet_group:
221 state: present
222 name: '{{ group_name }}'
223 description: '{{ description_updated }}'
224 ## No longer mandatory
225 # subnets:
226 # - '{{ subnet_id_a }}'
227 # - '{{ subnet_id_b }}'
228 register: update_description
229
230 - name: Check result - Update Subnet Group Description
231 assert:
232 that:
233 - update_description is successful
234 - update_description is changed
235 - '"cache_subnet_group" in update_description'
236 - '"arn" in update_description.cache_subnet_group'
237 - '"description" in update_description.cache_subnet_group'
238 - '"name" in update_description.cache_subnet_group'
239 - '"subnet_ids" in update_description.cache_subnet_group'
240 - '"vpc_id" in update_description.cache_subnet_group'
241 - update_description.cache_subnet_group.description == description_updated
242 - update_description.cache_subnet_group.name == group_name
243 - subnet_id_a in update_description.cache_subnet_group.subnet_ids
244 - subnet_id_b in update_description.cache_subnet_group.subnet_ids
245 - subnet_id_c not in update_description.cache_subnet_group.subnet_ids
246 - subnet_id_d not in update_description.cache_subnet_group.subnet_ids
247 - update_description.cache_subnet_group.vpc_id == vpc_id
248 - update_description.cache_subnet_group.arn.startswith('arn:')
249 - update_description.cache_subnet_group.arn.endswith(group_name)
250
251 - name: Update Subnet Group Description - idempotency - check_mode
252 elasticache_subnet_group:
253 state: present
254 name: '{{ group_name }}'
255 description: '{{ description_updated }}'
256 ## No longer mandatory
257 # subnets:
258 # - '{{ subnet_id_a }}'
259 # - '{{ subnet_id_b }}'
260 check_mode: True
261 register: update_description
262
263 - name: Check result - Update Subnet Group Description - idempotency - check_mode
264 assert:
265 that:
266 - update_description is successful
267 - update_description is not changed
268
269 - name: Update Subnet Group Description - idempotency
270 elasticache_subnet_group:
271 state: present
272 name: '{{ group_name }}'
273 description: '{{ description_updated }}'
274 ## No longer mandatory
275 # subnets:
276 # - '{{ subnet_id_a }}'
277 # - '{{ subnet_id_b }}'
278 register: update_description
279
280 - name: Check result - Update Subnet Group Description - idempotency
281 assert:
282 that:
283 - update_description is successful
284 - update_description is not changed
285 - '"cache_subnet_group" in update_description'
286 - '"arn" in update_description.cache_subnet_group'
287 - '"description" in update_description.cache_subnet_group'
288 - '"name" in update_description.cache_subnet_group'
289 - '"subnet_ids" in update_description.cache_subnet_group'
290 - '"vpc_id" in update_description.cache_subnet_group'
291 - update_description.cache_subnet_group.description == description_updated
292 - update_description.cache_subnet_group.name == group_name
293 - subnet_id_a in update_description.cache_subnet_group.subnet_ids
294 - subnet_id_b in update_description.cache_subnet_group.subnet_ids
295 - subnet_id_c not in update_description.cache_subnet_group.subnet_ids
296 - subnet_id_d not in update_description.cache_subnet_group.subnet_ids
297 - update_description.cache_subnet_group.vpc_id == vpc_id
298 - update_description.cache_subnet_group.arn.startswith('arn:')
299 - update_description.cache_subnet_group.arn.endswith(group_name)
300
301 # ============================================================
302
303 - name: Update Subnet Group subnets - check_mode
304 elasticache_subnet_group:
305 state: present
306 name: '{{ group_name }}'
307 ## No longer mandatory
308 # description: '{{ description_updated }}'
309 subnets:
310 - '{{ subnet_id_c }}'
311 - '{{ subnet_id_d }}'
312 check_mode: True
313 register: update_subnets
314
315 - name: Check result - Update Subnet Group subnets - check_mode
316 assert:
317 that:
318 - update_subnets is successful
319 - update_subnets is changed
320
321 - name: Update Subnet Group subnets
322 elasticache_subnet_group:
323 state: present
324 name: '{{ group_name }}'
325 ## No longer mandatory
326 # description: '{{ description_updated }}'
327 subnets:
328 - '{{ subnet_id_c }}'
329 - '{{ subnet_id_d }}'
330 register: update_subnets
331
332 - name: Check result - Update Subnet Group subnets
333 assert:
334 that:
335 - update_subnets is successful
336 - update_subnets is changed
337 - '"cache_subnet_group" in update_subnets'
338 - '"arn" in update_subnets.cache_subnet_group'
339 - '"description" in update_subnets.cache_subnet_group'
340 - '"name" in update_subnets.cache_subnet_group'
341 - '"subnet_ids" in update_subnets.cache_subnet_group'
342 - '"vpc_id" in update_subnets.cache_subnet_group'
343 - update_subnets.cache_subnet_group.description == description_updated
344 - update_subnets.cache_subnet_group.name == group_name
345 - subnet_id_a not in update_subnets.cache_subnet_group.subnet_ids
346 - subnet_id_b not in update_subnets.cache_subnet_group.subnet_ids
347 - subnet_id_c in update_subnets.cache_subnet_group.subnet_ids
348 - subnet_id_d in update_subnets.cache_subnet_group.subnet_ids
349 - update_subnets.cache_subnet_group.vpc_id == vpc_id
350 - update_subnets.cache_subnet_group.arn.startswith('arn:')
351 - update_subnets.cache_subnet_group.arn.endswith(group_name)
352
353 - name: Update Subnet Group subnets - idempotency - check_mode
354 elasticache_subnet_group:
355 state: present
356 name: '{{ group_name }}'
357 ## No longer mandatory
358 # description: '{{ description_updated }}'
359 subnets:
360 - '{{ subnet_id_c }}'
361 - '{{ subnet_id_d }}'
362 check_mode: True
363 register: update_subnets
364
365 - name: Check result - Update Subnet Group subnets - idempotency - check_mode
366 assert:
367 that:
368 - update_subnets is successful
369 - update_subnets is not changed
370
371 - name: Update Subnet Group subnets - idempotency
372 elasticache_subnet_group:
373 state: present
374 name: '{{ group_name }}'
375 ## No longer mandatory
376 # description: '{{ description_updated }}'
377 subnets:
378 - '{{ subnet_id_c }}'
379 - '{{ subnet_id_d }}'
380 register: update_subnets
381
382 - name: Check result - Update Subnet Group subnets - idempotency
383 assert:
384 that:
385 - update_subnets is successful
386 - update_subnets is not changed
387 - '"cache_subnet_group" in update_subnets'
388 - '"arn" in update_subnets.cache_subnet_group'
389 - '"description" in update_subnets.cache_subnet_group'
390 - '"name" in update_subnets.cache_subnet_group'
391 - '"subnet_ids" in update_subnets.cache_subnet_group'
392 - '"vpc_id" in update_subnets.cache_subnet_group'
393 - update_subnets.cache_subnet_group.description == description_updated
394 - update_subnets.cache_subnet_group.name == group_name
395 - subnet_id_a not in update_subnets.cache_subnet_group.subnet_ids
396 - subnet_id_b not in update_subnets.cache_subnet_group.subnet_ids
397 - subnet_id_c in update_subnets.cache_subnet_group.subnet_ids
398 - subnet_id_d in update_subnets.cache_subnet_group.subnet_ids
399 - update_subnets.cache_subnet_group.vpc_id == vpc_id
400 - update_subnets.cache_subnet_group.arn.startswith('arn:')
401 - update_subnets.cache_subnet_group.arn.endswith(group_name)
402
403 # ============================================================
404
405 - name: Delete Subnet Group - check_mode
406 elasticache_subnet_group:
407 state: absent
408 name: '{{ group_name }}'
409 check_mode: True
410 register: delete_group
411
412 - name: Check result - Delete Subnet Group - check_mode
413 assert:
414 that:
415 - delete_group is changed
416
417 - name: Delete Subnet Group
418 elasticache_subnet_group:
419 state: absent
420 name: '{{ group_name }}'
421 register: delete_group
422
423 - name: Check result - Delete Subnet Group
424 assert:
425 that:
426 - delete_group is changed
427
428 - name: Delete Subnet Group - idempotency - check_mode
429 elasticache_subnet_group:
430 state: absent
431 name: '{{ group_name }}'
432 check_mode: True
433 register: delete_group
434
435 - name: Check result - Delete Subnet Group - idempotency - check_mode
436 assert:
437 that:
438 - delete_group is not changed
439
440 - name: Delete Subnet Group - idempotency
441 elasticache_subnet_group:
442 state: absent
443 name: '{{ group_name }}'
444 register: delete_group
445
446 - name: Check result - Delete Subnet Group - idempotency
447 assert:
448 that:
449 - delete_group is not changed
450
451 # ============================================================
452
453 - name: Create minimal Subnet Group - check_mode
454 elasticache_subnet_group:
455 state: present
456 name: '{{ group_name }}'
457 subnets:
458 - '{{ subnet_id_a }}'
459 check_mode: True
460 register: create_group
461
462 - name: Check result - Create minimal Subnet Group - check_mode
463 assert:
464 that:
465 - create_group is successful
466 - create_group is changed
467
468 - name: Create minimal Subnet Group
469 elasticache_subnet_group:
470 state: present
471 name: '{{ group_name }}'
472 subnets:
473 - '{{ subnet_id_a }}'
474 register: create_group
475
476 - name: Check result - Create minimal Subnet Group
477 assert:
478 that:
479 - create_group is successful
480 - create_group is changed
481 - '"cache_subnet_group" in create_group'
482 - '"arn" in create_group.cache_subnet_group'
483 - '"description" in create_group.cache_subnet_group'
484 - '"name" in create_group.cache_subnet_group'
485 - '"subnet_ids" in create_group.cache_subnet_group'
486 - '"vpc_id" in create_group.cache_subnet_group'
487 - create_group.cache_subnet_group.description == group_name
488 - create_group.cache_subnet_group.name == group_name
489 - subnet_id_a in create_group.cache_subnet_group.subnet_ids
490 - subnet_id_b not in create_group.cache_subnet_group.subnet_ids
491 - subnet_id_c not in create_group.cache_subnet_group.subnet_ids
492 - subnet_id_d not in create_group.cache_subnet_group.subnet_ids
493 - create_group.cache_subnet_group.vpc_id == vpc_id
494 - create_group.cache_subnet_group.arn.startswith('arn:')
495 - create_group.cache_subnet_group.arn.endswith(group_name)
496
497 - name: Create minimal Subnet Group - idempotency - check_mode
498 elasticache_subnet_group:
499 state: present
500 name: '{{ group_name }}'
501 subnets:
502 - '{{ subnet_id_a }}'
503 check_mode: True
504 register: create_group
505
506 - name: Check result - Create minimal Subnet Group - idempotency - check_mode
507 assert:
508 that:
509 - create_group is successful
510 - create_group is not changed
511
512 - name: Create minimal Subnet Group - idempotency
513 elasticache_subnet_group:
514 state: present
515 name: '{{ group_name }}'
516 subnets:
517 - '{{ subnet_id_a }}'
518 register: create_group
519
520 - name: Check result - Create minimal Subnet Group - idempotency
521 assert:
522 that:
523 - create_group is successful
524 - create_group is not changed
525 - '"cache_subnet_group" in create_group'
526 - '"arn" in create_group.cache_subnet_group'
527 - '"description" in create_group.cache_subnet_group'
528 - '"name" in create_group.cache_subnet_group'
529 - '"subnet_ids" in create_group.cache_subnet_group'
530 - '"vpc_id" in create_group.cache_subnet_group'
531 - create_group.cache_subnet_group.description == group_name
532 - create_group.cache_subnet_group.name == group_name
533 - subnet_id_a in create_group.cache_subnet_group.subnet_ids
534 - subnet_id_b not in create_group.cache_subnet_group.subnet_ids
535 - subnet_id_c not in create_group.cache_subnet_group.subnet_ids
536 - subnet_id_d not in create_group.cache_subnet_group.subnet_ids
537 - create_group.cache_subnet_group.vpc_id == vpc_id
538 - create_group.cache_subnet_group.arn.startswith('arn:')
539 - create_group.cache_subnet_group.arn.endswith(group_name)
540
541 # ============================================================
542
543 - name: Full Update Subnet Group - check_mode
544 elasticache_subnet_group:
545 state: present
546 name: '{{ group_name }}'
547 description: '{{ description_updated }}'
548 subnets:
549 - '{{ subnet_id_a }}'
550 - '{{ subnet_id_b }}'
551 check_mode: True
552 register: update_complex
553
554 - name: Check result - Full Update Subnet Group - check_mode
555 assert:
556 that:
557 - update_complex is successful
558 - update_complex is changed
559
560 - name: Update Subnet Group
561 elasticache_subnet_group:
562 state: present
563 name: '{{ group_name }}'
564 description: '{{ description_updated }}'
565 subnets:
566 - '{{ subnet_id_a }}'
567 - '{{ subnet_id_b }}'
568 register: update_complex
569
570 - name: Check result - Full Update Subnet Group
571 assert:
572 that:
573 - update_complex is successful
574 - update_complex is changed
575 - '"cache_subnet_group" in update_complex'
576 - '"arn" in update_complex.cache_subnet_group'
577 - '"description" in update_complex.cache_subnet_group'
578 - '"name" in update_complex.cache_subnet_group'
579 - '"subnet_ids" in update_complex.cache_subnet_group'
580 - '"vpc_id" in update_complex.cache_subnet_group'
581 - update_complex.cache_subnet_group.description == description_updated
582 - update_complex.cache_subnet_group.name == group_name
583 - subnet_id_a in update_complex.cache_subnet_group.subnet_ids
584 - subnet_id_b in update_complex.cache_subnet_group.subnet_ids
585 - subnet_id_c not in update_complex.cache_subnet_group.subnet_ids
586 - subnet_id_d not in update_complex.cache_subnet_group.subnet_ids
587 - update_complex.cache_subnet_group.vpc_id == vpc_id
588 - update_complex.cache_subnet_group.arn.startswith('arn:')
589 - update_complex.cache_subnet_group.arn.endswith(group_name)
590
591 - name: Full Update Subnet Group - idempotency - check_mode
592 elasticache_subnet_group:
593 state: present
594 name: '{{ group_name }}'
595 description: '{{ description_updated }}'
596 subnets:
597 - '{{ subnet_id_a }}'
598 - '{{ subnet_id_b }}'
599 check_mode: True
600 register: update_complex
601
602 - name: Check result - Full Update Subnet Group - idempotency - check_mode
603 assert:
604 that:
605 - update_complex is successful
606 - update_complex is not changed
607
608 - name: Full Update Subnet Group - idempotency
609 elasticache_subnet_group:
610 state: present
611 name: '{{ group_name }}'
612 description: '{{ description_updated }}'
613 subnets:
614 - '{{ subnet_id_a }}'
615 - '{{ subnet_id_b }}'
616 register: update_complex
617
618 - name: Check result - Full Update Subnet Group - idempotency
619 assert:
620 that:
621 - update_complex is successful
622 - update_complex is not changed
623 - '"cache_subnet_group" in update_complex'
624 - '"arn" in update_complex.cache_subnet_group'
625 - '"description" in update_complex.cache_subnet_group'
626 - '"name" in update_complex.cache_subnet_group'
627 - '"subnet_ids" in update_complex.cache_subnet_group'
628 - '"vpc_id" in update_complex.cache_subnet_group'
629 - update_complex.cache_subnet_group.description == description_updated
630 - update_complex.cache_subnet_group.name == group_name
631 - subnet_id_a in update_complex.cache_subnet_group.subnet_ids
632 - subnet_id_b in update_complex.cache_subnet_group.subnet_ids
633 - subnet_id_c not in update_complex.cache_subnet_group.subnet_ids
634 - subnet_id_d not in update_complex.cache_subnet_group.subnet_ids
635 - update_complex.cache_subnet_group.vpc_id == vpc_id
636 - update_complex.cache_subnet_group.arn.startswith('arn:')
637 - update_complex.cache_subnet_group.arn.endswith(group_name)
638
639 # ============================================================
640
641 - name: Delete Subnet Group
642 elasticache_subnet_group:
643 state: absent
644 name: '{{ group_name }}'
645 register: delete_group
646
647 - name: Check result - Delete Subnet Group
648 assert:
649 that:
650 - delete_group is changed
651
652 always:
653
654 ################################################
655 # TEARDOWN STARTS HERE
656 ################################################
657
658 - name: Delete Subnet Group
659 elasticache_subnet_group:
660 state: absent
661 name: '{{ group_name }}'
662 ignore_errors: True
663
664 - name: tidy up subnet
665 ec2_vpc_subnet:
666 state: absent
667 cidr: '{{ item }}'
668 vpc_id: '{{ vpc_result.vpc.id }}'
669 loop:
670 - '{{ subnet_cidr_a }}'
671 - '{{ subnet_cidr_b }}'
672 - '{{ subnet_cidr_c }}'
673 - '{{ subnet_cidr_d }}'
674 ignore_errors: True
675
676 - name: tidy up VPC
677 ec2_vpc_net:
678 state: absent
679 name: '{{ vpc_name }}'
680 cidr_block: '{{ vpc_cidr }}'
681 ignore_errors: True