Skip to content

Instantly share code, notes, and snippets.

@thetrav
Created January 15, 2016 04:41
Show Gist options
  • Save thetrav/f5892b9d5ac88c088690 to your computer and use it in GitHub Desktop.
Save thetrav/f5892b9d5ac88c088690 to your computer and use it in GitHub Desktop.
Ansible in Docker
docker build -t=dev/ansible .
FROM ubuntu
RUN apt-get update
RUN apt-get install -y wget build-essential python python-dev
RUN wget https://bootstrap.pypa.io/get-pip.py
RUN python get-pip.py
RUN pip install ansible
CMD /bin/bash
docker run -it dev/ansible /bin/bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment