Code Review
/
sdnc
/
oam.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Update format of security section
[sdnc/oam.git]
/
installation
/
ansible-server
/
src
/
main
/
scripts
/
startAnsibleServer.sh
diff --git
a/installation/ansible-server/src/main/scripts/startAnsibleServer.sh
b/installation/ansible-server/src/main/scripts/startAnsibleServer.sh
index
f1e9316
..
c35f786
100644
(file)
--- a/
installation/ansible-server/src/main/scripts/startAnsibleServer.sh
+++ b/
installation/ansible-server/src/main/scripts/startAnsibleServer.sh
@@
-3,14
+3,17
@@
exec &> >(tee -a "/var/log/ansible-server.log")
if [ ! -f /tmp/.ansible-server-installed ]
then
if [ ! -f /tmp/.ansible-server-installed ]
then
-
pip install PyMySQL
-
pip install cherrypy
-
pip install requests
+ 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
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
+
+ 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/sdnc
fi
cd /opt/onap/sdnc