2016-08-12 07:04:42 +00:00
|
|
|
# ansible [![Build Status](https://drone.chmuul.net/api/badges/aal/ansible/status.svg)](https://drone.chmuul.net/aal/ansible)
|
2016-07-24 19:20:12 +00:00
|
|
|
|
2016-07-31 12:44:58 +00:00
|
|
|
A docker image for running ansible playbooks
|
2016-07-24 19:20:12 +00:00
|
|
|
|
2016-07-31 12:44:58 +00:00
|
|
|
Available in two flavours:
|
2016-07-24 19:20:12 +00:00
|
|
|
|
2016-08-12 07:25:19 +00:00
|
|
|
* registry.chmuul.net/ansible:ubuntu-16.04
|
|
|
|
* registry.chmuul.net/ansible:debian-8
|
|
|
|
* registry.chmuul.net/ansible:fedora-24
|
|
|
|
* registry.chmuul.net/ansible:alpine-3
|
2016-07-31 12:44:58 +00:00
|
|
|
|
|
|
|
## run ansible-controller
|
2016-07-24 19:20:12 +00:00
|
|
|
|
|
|
|
docker run -it --rm \
|
|
|
|
-v /path/to/site/:/site \
|
|
|
|
-v /path/to/ansible-user-ssh/:/root/.ssh:ro \
|
|
|
|
--tmpfs /root/.ansible \
|
2016-07-31 12:44:58 +00:00
|
|
|
registry.chmuul.net/ansible-controller:ubuntu-16.04 \
|
2016-07-24 19:20:12 +00:00
|
|
|
ansible-playbook site.yml
|
2016-08-12 07:25:19 +00:00
|
|
|
|
2016-08-12 07:32:10 +00:00
|
|
|
Note: /root/.ansible must not be an overlayfs, otherwise ssh multiplexing won't work.
|
|
|
|
|
2016-08-12 07:25:19 +00:00
|
|
|
## todo
|
|
|
|
|
2016-08-12 07:32:10 +00:00
|
|
|
Publish ansible images to docker hub
|