mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-07-02 04:52:11 +00: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:
parent
2976bf7102
commit
b4ed9952bf
1 changed files with 9 additions and 0 deletions
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue