Skip to content

Commit be995cc

Browse files
committed
replace sed command with --extra-vars arg #4990
1 parent 9dbf2be commit be995cc

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

scripts/installer/ec2-create-instance.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,14 @@ echo "Please wait at least 15 minutes while the branch \"$BRANCH_NAME\" is being
7575
ssh -T -i $PEM_FILE -o 'StrictHostKeyChecking no' -o 'UserKnownHostsFile=/dev/null' -o 'ConnectTimeout=300' $USER_AT_HOST <<EOF
7676
sudo yum -y install git nano ansible
7777
git clone https://github.com/IQSS/dataverse-ansible.git dataverse
78+
# FIXME: remove these lines to check out the "extra-vars-travis" branch
79+
# after https://github.com/IQSS/dataverse-ansible/pull/27 has been merged.
80+
cd dataverse
81+
git checkout extra-vars-travis
82+
cd ..
83+
# FIXME: The lines to remove are above.
7884
export ANSIBLE_ROLES_PATH=.
79-
sed -i "s/branch:/branch: $BRANCH_NAME/" dataverse/defaults/main.yml
80-
ansible-playbook -i dataverse/inventory dataverse/dataverse.pb --connection=local
85+
ansible-playbook -i dataverse/inventory dataverse/dataverse.pb --connection=local --extra-vars "branch=$BRANCH_NAME repo=https://github.com/IQSS/dataverse.git"
8186
EOF
8287

8388
#Port 8080 has been added because Ansible puts a redirect in place

0 commit comments

Comments
 (0)