initial commit

This commit is contained in:
Paul Voss 2016-07-24 21:20:12 +02:00
commit c08a3b4e6c
2 changed files with 27 additions and 0 deletions

10
Dockerfile Normal file
View File

@ -0,0 +1,10 @@
FROM fedora:24
RUN dnf -y install \
ansible \
openssh-clients \
&& dnf clean all
WORKDIR /site
CMD ["ansible-playbook", "--help"]

17
README.md Normal file
View File

@ -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