From b4ed9952bf014a075b5c18cdb1f583397cce50a9 Mon Sep 17 00:00:00 2001 From: Sebastian Haderecker Date: Wed, 10 Apr 2019 10:39:55 +0000 Subject: [PATCH] Added Playbook commands for Custom EWS and Reboot - Custom ews.cfg Playbook is only executed if option for it is set - Added separate Reboot Playbook command --- cloud/deploy_ansible_otc_t-pot.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/cloud/deploy_ansible_otc_t-pot.sh b/cloud/deploy_ansible_otc_t-pot.sh index b2158e78..6500b475 100755 --- a/cloud/deploy_ansible_otc_t-pot.sh +++ b/cloud/deploy_ansible_otc_t-pot.sh @@ -53,6 +53,15 @@ if [ $? -eq 0 ]; then echo "### NEW HOST $HPNAME ON IP $PUBIP" ansible-playbook -i ./hosts/$HPNAME ./ansible/install.yaml + + if [ $custom_ews = true ]; then + + ansible-playbook -i ./hosts/$HPNAME ./ansible/custom_ews.yaml + + fi + + ansible-playbook -i ./hosts/$HPNAME ./ansible/reboot.yaml + echo "***********************************************" echo "***** SSH TO TARGET: " echo "***** ssh linux@$PUBIP -p 64295"