Skip to content

Commit

Permalink
Install epel-release before, add comment #4990
Browse files Browse the repository at this point in the history
  • Loading branch information
matthew-a-dunlap authored Sep 21, 2018
1 parent 5ed3eb1 commit 59c158a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/installer/ec2-create-instance.sh
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,11 @@ echo "ssh -i $PEM_FILE $USER_AT_HOST"

echo "Please wait at least 15 minutes while the branch \"$BRANCH_NAME\" from $REPO_URL is being deployed."

# epel-release is installed first to ensure the latest ansible is installed after
# TODO: Add some error checking for this ssh command.
ssh -T -i $PEM_FILE -o 'StrictHostKeyChecking no' -o 'UserKnownHostsFile=/dev/null' -o 'ConnectTimeout=300' $USER_AT_HOST <<EOF
sudo yum -y install git nano ansible epel-release
sudo yum -y install epel-release
sudo yum -y install git nano ansible
git clone https://github.com/IQSS/dataverse-ansible.git dataverse
export ANSIBLE_ROLES_PATH=.
ansible-playbook -i dataverse/inventory dataverse/dataverse.pb --connection=local --extra-vars "dataverse_branch=$BRANCH_NAME dataverse_repo=$REPO_URL"
Expand Down

0 comments on commit 59c158a

Please sign in to comment.