mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-07-02 01:27:27 -04:00
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:
@ -53,6 +53,15 @@ if [ $? -eq 0 ]; then
|
|||||||
echo "### NEW HOST $HPNAME ON IP $PUBIP"
|
echo "### NEW HOST $HPNAME ON IP $PUBIP"
|
||||||
|
|
||||||
ansible-playbook -i ./hosts/$HPNAME ./ansible/install.yaml
|
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 "***********************************************"
|
||||||
echo "***** SSH TO TARGET: "
|
echo "***** SSH TO TARGET: "
|
||||||
echo "***** ssh linux@$PUBIP -p 64295"
|
echo "***** ssh linux@$PUBIP -p 64295"
|
||||||
|
Reference in New Issue
Block a user