#!/bin/bash

HOST_GROUP=$1
BRANCH=$2

cd infra/ansible
ansible-playbook ingest_deploy.yaml -i inventory/ingest_servers --extra-vars "host_group=$HOST_GROUP" --extra-vars "BRANCH=$BRANCH"
ANSIBLE_PLAYBOOK_EXIT_CODE=$?
exit $ANSIBLE_PLAYBOOK_EXIT_CODE
