Skip to content
Snippets Groups Projects
Commit c0ecfa09 authored by Felix's avatar Felix Committed by Paul
Browse files

Use latest ansible from pip

parent dbc4de05
No related branches found
No related tags found
No related merge requests found
......@@ -23,22 +23,16 @@ RUN \
py-yaml \
tar
RUN pip install --upgrade python-keyczar pykeepass
RUN rm -rf /var/cache/apk/*
RUN mkdir /etc/ansible/ /ansible
RUN echo "[local]" >> /etc/ansible/hosts && \
echo "localhost" >> /etc/ansible/hosts
RUN \
curl -fsSL https://github.com/ansible/ansible/archive/v2.3.1.0-1.tar.gz -o ansible.tar.gz && \
tar -xzf ansible.tar.gz -C ansible --strip-components 1 && \
rm -fr ansible.tar.gz /ansible/docs /ansible/examples /ansible/packaging
echo "localhost" >> /etc/ansible/host
RUN mkdir -p /ansible/playbooks
ADD ./files /ansible/playbooks
WORKDIR /ansible/playbooks
RUN pip install --upgrade python-keyczar pykeepass ansible
RUN rm -rf /var/cache/apk/*
ENV ANSIBLE_GATHERING smart
ENV ANSIBLE_HOST_KEY_CHECKING false
ENV ANSIBLE_RETRY_FILES_ENABLED false
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment