blob: f1e93168a291be01d168b466c931e82b47068459 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#!/bin/bash
exec &> >(tee -a "/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 /usr/bin/python RestServer.py
|