commit c08a3b4e6c0a12a483f7c7233f71b5f22d4795f9 Author: Paul Voss Date: Sun Jul 24 21:20:12 2016 +0200 initial commit diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..88a404a --- /dev/null +++ b/Dockerfile @@ -0,0 +1,10 @@ +FROM fedora:24 + +RUN dnf -y install \ + ansible \ + openssh-clients \ + && dnf clean all + +WORKDIR /site + +CMD ["ansible-playbook", "--help"] diff --git a/README.md b/README.md new file mode 100644 index 0000000..8feb8a3 --- /dev/null +++ b/README.md @@ -0,0 +1,17 @@ +# ansible-controller + +A fedora-based docker image for running ansible playbooks + +## Build the image + + docker build -t aal/ansible-controller . + +## Run ansible-controller + + docker run -it --rm \ + -v /path/to/site/:/site \ + -v /path/to/ansible-user-ssh/:/root/.ssh:ro \ + --tmpfs /root/.ansible \ + aal/ansible-controller \ + ansible-playbook site.yml +