Skip to content

Commit 7daa536

Browse files
updates run.sh with region
1 parent c98a780 commit 7daa536

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

files/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ aws s3 cp --region ${region} s3://${bucket}/files/plugin.py /tmp/ansible/callbac
3535
# If /tmp/ansible/.env exists, then export all variables excluding lines beginning with #
3636
[ -f /tmp/ansible/.env ] && export $(egrep -v '^#' /tmp/ansible/.env | xargs)
3737

38-
ansible-playbook -v --private-key ${key_file} -u ${ec2_user} -e @/tmp/ansible/secrets.yaml -i ${hosts_file} ${site_file}
38+
AWS_DEFAULT_REGION=${region} ansible-playbook -v --private-key ${key_file} -u ${ec2_user} -e @/tmp/ansible/secrets.yaml -i ${hosts_file} ${site_file}
3939

4040
instance=$(curl http://169.254.169.254/latest/meta-data/instance-id)
4141

0 commit comments

Comments
 (0)