blob: eec62ba6f85eb820d943a51d73de180edacd133e (
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 [ ! -f /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
|