We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c98a780 commit 7daa536Copy full SHA for 7daa536
files/run.sh
@@ -35,7 +35,7 @@ aws s3 cp --region ${region} s3://${bucket}/files/plugin.py /tmp/ansible/callbac
35
# If /tmp/ansible/.env exists, then export all variables excluding lines beginning with #
36
[ -f /tmp/ansible/.env ] && export $(egrep -v '^#' /tmp/ansible/.env | xargs)
37
38
-ansible-playbook -v --private-key ${key_file} -u ${ec2_user} -e @/tmp/ansible/secrets.yaml -i ${hosts_file} ${site_file}
+AWS_DEFAULT_REGION=${region} ansible-playbook -v --private-key ${key_file} -u ${ec2_user} -e @/tmp/ansible/secrets.yaml -i ${hosts_file} ${site_file}
39
40
instance=$(curl http://169.254.169.254/latest/meta-data/instance-id)
41
0 commit comments