blob: 966a29a1c1556047c3a7c0ded05f4a74325c1236 [file] [log] [blame]
#!/bin/bash
exec &> >(tee -a "/var/log/ansible-server.log")
if [ ! -f /tmp/.ansible-server-installed ]
then
pip install 'cherrypy<18.0.0'
pip install requests
cp /etc/ansible/ansible.cfg /etc/ansible/ansible.cfg.orig
cat /etc/ansible/ansible.cfg.orig | sed -e 's/#host_key_checking/host_key_checking/' > /etc/ansible/ansible.cfg
date > /tmp/.ansible-server-installed 2>&1
fi
cd /opt/onap/ccsdk
exec /usr/bin/python RestServer.py