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
This commit is contained in:
Sebastian Haderecker 2019-04-10 10:39:55 +00:00
parent 2976bf7102
commit b4ed9952bf

View file

@ -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"