Move add-apt-repository to startup
[sdnc/oam.git] / installation / ansible-server / src / main / scripts / startAnsibleServer.sh
1 #/bin/bash
2
3 if [ ! -d /tmp/.ansible-server-installed]
4 then
5         pip install PyMySQL
6         pip install cherrypy
7         pip install requests
8
9     apt-get -y install software-properties-common
10     apt-add-repository -y ppa:ansible/ansible
11     apt-get -y install ansible
12         date > /tmp/.ansible-server-installed 2>&1
13 fi
14
15 cd /opt/onap/sdnc
16 exec python RestServer.py > RestServer.out