Public | Automated Build

Last pushed: a year ago
Short Description
Host a web hook useful for triggering an ansible playbook from a service such as travis-ci
Full Description

Docker-Ansible-Webhook

This repo runs a container to host a web hook useful for triggering an ansible playbook from a service such as travis-ci.

References

Webhook ability is provided by this project: http://captain-webhook.readthedocs.io/en/latest/

Mostly following: https://coreos.com/blog/managing-coreos-with-ansible/

Using this additional module to avoid having to update dns or add ip to hosts: https://github.com/gaqzi/ansible-ssh-config

Using this role to prepare coreOS host to support python/ansible: https://github.com/defunctzombie/ansible-coreos-bootstrap

Install

Pre-reqs: have docker installed, then

  1. git clone <this repo>
  2. add an ssh key to ./keys
  3. update your Digital Ocean API key in ./site.yml
  4. ./run.sh

This will start (or replace) a container called docker-ansible-webhook

docker logs -f docker-ansible-webhook
Starting server...
Trigger URL: http://0.0.0.0:8080/webhook/bee72934-109f-11e6-9000-7b065b4a6abb/
Command: ./deploy.sh

Ping all droplets

ansible all -m ping
Docker Pull Command
Owner
stackdump

Comments (0)