From c08a3b4e6c0a12a483f7c7233f71b5f22d4795f9 Mon Sep 17 00:00:00 2001 From: Paul Voss Date: Sun, 24 Jul 2016 21:20:12 +0200 Subject: [PATCH] initial commit --- Dockerfile | 10 ++++++++++ README.md | 17 +++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 Dockerfile create mode 100644 README.md 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 +