Guillaume Coré
2020-01-27 d03e719f5664a857aeeaef883a4fbc48ef06622f
empty-config: Add aws_region as it is needed by destroy.yml playbook (#1053)

* Add aws_region as it is needed by destroy.yml playbook

* Use the variable aws_region in cloudformation
1 files added
1 files modified
1 files renamed
5 ■■■■ changed files
ansible/configs/test-empty-config/default_vars.yml patch | view | raw | blame | history
ansible/configs/test-empty-config/default_vars_ec2.yml 3 ●●●●● patch | view | raw | blame | history
ansible/roles/infra-aws-dry-run/tasks/cloudformation.yml 2 ●●● patch | view | raw | blame | history
ansible/configs/test-empty-config/default_vars.yml
ansible/configs/test-empty-config/default_vars_ec2.yml
New file
@@ -0,0 +1,3 @@
---
# mandatory to run ansible/destroy.yml playbook
aws_region: us-east-1
ansible/roles/infra-aws-dry-run/tasks/cloudformation.yml
@@ -2,7 +2,7 @@
- environment:
    AWS_ACCESS_KEY_ID: "{{aws_access_key_id}}"
    AWS_SECRET_ACCESS_KEY: "{{aws_secret_access_key}}"
    AWS_REGION: us-east-1
    AWS_REGION: "{{ aws_region_final | default(aws_region) | default(region) | default('us-east-1')}}"
  block:
    - name: Test cloudformation deletion (dry-run)
      cloudformation: