1
0
Fork 0
mirror of https://github.com/mmumshad/ansible-playable.git synced 2025-02-14 19:51:55 +00:00

Add messages

This commit is contained in:
Mumshad Mannambeth 2017-07-12 09:53:45 -04:00
parent 3aeeb4f8fa
commit 3e90928e35

View file

@ -1,8 +1,11 @@
#!/usr/bin/env bash
COLOR_GREEN='\033[0;32m'
NC='\033[0m' # No Color
echo ""
echo -e "${COLOR_GREEN}-----------------------------------------------------"
echo -e " Start SSH Service"
echo -e "-----------------------------------------------------${NC}"
# Start the ssh service. This is required by the playable web server
service ssh start
@ -11,12 +14,20 @@ service ssh start
if [[ ${MOUNT_S3} = "True" ]];
then
echo "Mounting Amazon S3 Bucket to /opt/ansible-projects"
echo -e "${COLOR_GREEN}-----------------------------------------------------"
echo " Mounting Amazon S3 Bucket to /opt/ansible-projects"
echo -e "-----------------------------------------------------${NC}"
yas3fs s3://${S3_PATH} /opt/ansible-projects -f
fi
echo -e "${COLOR_GREEN}-----------------------------------------------------"
echo -e " Start MONGODB Service"
echo -e "-----------------------------------------------------${NC}"
# Start MongoDB database in the background
mongod &
echo -e "${COLOR_GREEN}-----------------------------------------------------"
echo -e " Start Web Server"
echo -e "-----------------------------------------------------${NC}"
# Serve web server
gulp serve:dist:no_build