4 echo "This is to deploy the AI-ML framework training host"
8 echo "Usage: $0 target-ip private-key-file-path"
12 # pick up the input parameters from command line
16 # copy over the deploy.sh to remote
17 scp -o StrictHostKeyChecking=no -i $KEYFILE -q deploy.sh root@${IP}:~
19 # copy remote IP to the hosts.yaml file
20 echo "${IP}" >> hosts.yaml
22 # kick start the installation on remote
23 ansible-playbook -b -v -i hosts.yaml --become --private-key $KEYFILE cluster.yaml