Guillaume Coré
2018-11-07 6b74fb1902324d95b67328f08259f6f16f93af76
refs
author Guillaume Coré <gucore@redhat.com>
Wednesday, November 7, 2018 17:00 +0100
committer Guillaume Coré <gucore@redhat.com>
Wednesday, November 7, 2018 17:02 +0100
commit6b74fb1902324d95b67328f08259f6f16f93af76
tree c78cde8dfef29bcf91f64cb71ee022479d0c242e tree | zip | gz
parent 8bccfd73cf610ae5b6205baeceb5ca5257ebaf81 view | diff
detect and set AWS region in case aws_region_final is not defined

Sometimes the infra step is skipped, for example when scaling up a cluster.
when step001.1 is skipped, aws_region_final is not defined.

This commits adds tasks to detect the region and set aws_region_final depending
on 'fallback_regions' being defined or not.

Also update the destroy.yml play to use those tasks (DRY code).
1 files added
2 files modified
57 ■■■■■ changed files
ansible/cloud_providers/ec2_detect_region_tasks.yml 29 ●●●●● diff | view | raw | blame | history
ansible/cloud_providers/ec2_infrastructure_deployment.yml 5 ●●●●● diff | view | raw | blame | history
ansible/destroy.yml 23 ●●●●● diff | view | raw | blame | history