Skip to content

Instantly share code, notes, and snippets.

@katzefudder
Created October 12, 2017 08:12
Show Gist options
  • Save katzefudder/7be07919c4d643f1e96d76894c2ad7f2 to your computer and use it in GitHub Desktop.
Save katzefudder/7be07919c4d643f1e96d76894c2ad7f2 to your computer and use it in GitHub Desktop.
Ansible in a Container
FROM ubuntu:16.04
MAINTAINER Florian Dehn <[email protected]>
RUN echo "deb http://archive.ubuntu.com/ubuntu/ xenial multiverse" >> /etc/apt/sources.list
RUN apt-get update
RUN apt-get install -y python-pip openssh-client
RUN pip install --upgrade pip
RUN pip install ansible
RUN mkdir -pv /data
WORKDIR /data
ENTRYPOINT ["ansible-playbook"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment