add-apt-repository is failing in Jenkins, so move it to ansible server
startup script instead.
Change-Id: Iae058003678748c9a4bed9b5e279ebcce4c4695a
Issue-ID: SDNC-288
Signed-off-by: Timoney, Dan (dt5972) <dt5972@att.com>
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/
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