aboutsummaryrefslogtreecommitdiffstats
path: root/installation/ansible-server/src/main/scripts/startAnsibleServer.sh
blob: e9b912bb4dce9a7888dab59d6a0a96bf401e8a69 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#/bin/bash
exec &> /var/log/ansible-server.log

if [ ! -d /tmp/.ansible-server-installed]
then
	pip install PyMySQL
	pip install cherrypy
	pip install requests

    apt-get -y install software-properties-common
    apt-add-repository -y ppa:ansible/ansible
    apt-get -y install ansible
	date > /tmp/.ansible-server-installed 2>&1
fi

cd /opt/onap/sdnc
exec python RestServer.py