From 34a6429d9c0af51d2e29eb7a0d1d37c0babe1129 Mon Sep 17 00:00:00 2001 From: "Timoney, Dan (dt5972)" Date: Sun, 13 May 2018 09:50:34 -0400 Subject: Wrong id used to retrieve status LCM DGs were using incoming request id to retrieve status from ansible server instead of id returned by ansible server in initial request. Also, ansible should be configured to ignore host key checking to avoid certificate issues. Change-Id: I0cf3d053de652985c4611f8c7d2b5dbee22e0791 Issue-ID: SDNC-313 Signed-off-by: Timoney, Dan (dt5972) Former-commit-id: 4559d6203ab3f5706b6a2c1a898aa1df37407522 --- .../ansible-server/src/main/scripts/startAnsibleServer.sh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'installation/ansible-server/src/main') diff --git a/installation/ansible-server/src/main/scripts/startAnsibleServer.sh b/installation/ansible-server/src/main/scripts/startAnsibleServer.sh index f1e93168..c35f7864 100644 --- 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 - 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 - 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 -- cgit 1.2.3-korg