Created
September 26, 2013 22:06
-
-
Save jpetazzo/6721252 to your computer and use it in GitHub Desktop.
Ansible-in-Dockerfile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu | |
RUN sed -i 's/main/main universe multiverse/' /etc/apt/sources.list | |
RUN apt-get update -q | |
RUN apt-get install -qy build-essential python-dev python-pip curl | |
#RUN apt-get install -qy autoconf | |
RUN pip install ansible | |
RUN mkdir -p /etc/ansible | |
RUN curl -L https://github.com/gc3-uzh-ch/ansible-playbooks/archive/cloud.tar.gz | tar -zxf- | |
RUN /bin/echo -e "[slurm_master]\nlocalhost" > /etc/ansible/hosts | |
RUN cp /bin/true /bin/hostname | |
RUN cd ansible-playbooks-cloud && ansible-playbook site.yml -c local |
I'm assuming local provisioning like this stumbles if you reboot in one of your playbooks?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Have you had a good experience provisioning Docker with Ansible? I'm looking into using Ansible like this--wondering if you ran into any issues.