test/ansible-operator/Dockerfile: fix e2e ownerref issue
There is an issue in the latest ansible/ansible-runner image
that causes the ansible-operator proxy not to be used to add
owner references as expected. This commit ensures the latest
versions of ansible and ansible-runner are installed.
FROM ansible/ansible-runner
+RUN yum remove -y ansible python-idna
+RUN pip uninstall ansible-runner -y
+
RUN pip install --upgrade setuptools
-RUN pip install urllib3==1.23
-RUN pip install openshift ansible-runner-http
+RUN pip install ansible ansible-runner openshift kubernetes ansible-runner-http
-RUN echo "localhost ansible_connection=local" > /etc/ansible/hosts \
+RUN mkdir -p /etc/ansible \
+ && echo "localhost ansible_connection=local" > /etc/ansible/hosts \
&& echo '[defaults]' > /etc/ansible/ansible.cfg \
&& echo 'roles_path = /opt/ansible/roles' >> /etc/ansible/ansible.cfg \
&& echo 'library = /usr/share/ansible/openshift' >> /etc/ansible/ansible.cfg
