initial commit
This commit is contained in:
commit
c08a3b4e6c
10
Dockerfile
Normal file
10
Dockerfile
Normal 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
17
README.md
Normal 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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user