Skip to content

Commit

Permalink
updates run.sh with region
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanlalexander committed Aug 3, 2020
1 parent c98a780 commit 7daa536
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion files/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ aws s3 cp --region ${region} s3://${bucket}/files/plugin.py /tmp/ansible/callbac
# If /tmp/ansible/.env exists, then export all variables excluding lines beginning with #
[ -f /tmp/ansible/.env ] && export $(egrep -v '^#' /tmp/ansible/.env | xargs)

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}

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

Expand Down

0 comments on commit 7daa536

Please sign in to comment.