aboutsummaryrefslogtreecommitdiffstats
path: root/installation
diff options
context:
space:
mode:
authorDan Timoney <dt5972@att.com>2018-04-26 18:55:03 +0000
committerGerrit Code Review <gerrit@onap.org>2018-04-26 18:55:03 +0000
commitb954f3e2a2a78e0119ad1ad8976c12e444a62252 (patch)
tree6172d87ca71a751210d02ac19e0581328fb3d826 /installation
parent16451bbee9de0eb93a9f4033553c09fcd9070f7c (diff)
parentab93e4f6de3d0cc8abb707f98fc11b376a70e6fe (diff)
Merge "Move add-apt-repository to startup"
Former-commit-id: 11381d1feec3dacc6232f33c7bdc6e1d841e34ac
Diffstat (limited to 'installation')
-rw-r--r--installation/ansible-server/src/main/docker/Dockerfile5
-rw-r--r--installation/ansible-server/src/main/scripts/startAnsibleServer.sh4
2 files changed, 5 insertions, 4 deletions
diff --git a/installation/ansible-server/src/main/docker/Dockerfile b/installation/ansible-server/src/main/docker/Dockerfile
index dfbb060c..87ae9e79 100644
--- a/installation/ansible-server/src/main/docker/Dockerfile
+++ b/installation/ansible-server/src/main/docker/Dockerfile
@@ -16,10 +16,7 @@ RUN apt-get -y install vim
RUN apt-get -y install python2.7
RUN apt-get -y install python-pip
-##Ansible:
-RUN apt-get -y install software-properties-common
-RUN apt-add-repository -y ppa:ansible/ansible
-RUN apt-get -y install ansible
+
# copy files needed
COPY opt /opt/
diff --git a/installation/ansible-server/src/main/scripts/startAnsibleServer.sh b/installation/ansible-server/src/main/scripts/startAnsibleServer.sh
index 67af9623..643bbab2 100644
--- a/installation/ansible-server/src/main/scripts/startAnsibleServer.sh
+++ b/installation/ansible-server/src/main/scripts/startAnsibleServer.sh
@@ -5,6 +5,10 @@ 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