File tree Expand file tree Collapse file tree 2 files changed +2
-12
lines changed Expand file tree Collapse file tree 2 files changed +2
-12
lines changed Original file line number Diff line number Diff line change
1
+ aws_region : eu-central-1
Original file line number Diff line number Diff line change 9
9
with_items :
10
10
- ruby
11
11
12
- - name : Get Instance Metadata
13
- action : ec2_facts
14
- register : ec2_facts
15
-
16
- # # Default region to use for download when running locally or non ec2 instance
17
- - set_fact : region=eu-central-1
18
- when : ec2_facts.ansible_ec2_placement_region is undefined
19
-
20
- - set_fact : region={{ ec2_facts.ansible_ec2_placement_region }}
21
- when : ec2_facts.ansible_ec2_placement_region is defined
22
-
23
12
- name : Download CodeDeploy Agent
24
13
get_url :
25
- url : " https://aws-codedeploy-{{ region }}.s3.amazonaws.com/latest/install"
14
+ url : " https://aws-codedeploy-{{ aws_region }}.s3.amazonaws.com/latest/install"
26
15
dest : /tmp/codedeploy-install
27
16
mode : 0755
28
17
You can’t perform that action at this time.
0 commit comments