alpine build, implement to follow VNF anisble Req
[ccsdk/distribution.git] / ansible-server / src / main / scripts / startAnsibleServer.sh
1 #!/bin/bash
2 exec &> >(tee -a "/var/log/ansible-server.log")
3
4 if [ ! -f /tmp/.ansible-server-installed ]
5 then
6     pip install 'cherrypy<18.0.0'
7     pip install requests
8
9     cp /etc/ansible/ansible.cfg /etc/ansible/ansible.cfg.orig
10     cat /etc/ansible/ansible.cfg.orig | sed -e 's/#host_key_checking/host_key_checking/' > /etc/ansible/ansible.cfg
11     date > /tmp/.ansible-server-installed 2>&1
12 fi
13
14 cd /opt/onap/ccsdk
15 exec /usr/bin/python RestServer.py