An Ansible playbook to setup and configure a Docker Swarm with Consul as the backend
Edit inventory file:
swarm_cluster to suite your environment
Run the playbook:
ansible-playbook docker-swarm.yml -i swarm_cluster
You should now have a swarm up and running.
Read the related blog post: Docker Swarm with Ansible