Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nextrevision/ansible-swarm-playbook
Playbook for creating/managing a Docker Swarm cluster
https://github.com/nextrevision/ansible-swarm-playbook
Last synced: 2 days ago
JSON representation
Playbook for creating/managing a Docker Swarm cluster
- Host: GitHub
- URL: https://github.com/nextrevision/ansible-swarm-playbook
- Owner: nextrevision
- License: mit
- Created: 2016-09-13T19:50:06.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-09-20T16:30:17.000Z (5 months ago)
- Last Synced: 2025-02-12T11:08:26.954Z (9 days ago)
- Language: Python
- Size: 10.7 KB
- Stars: 182
- Watchers: 9
- Forks: 79
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Ansible Swarm Playbook
Playbook for creating/managing a Docker Swarm cluster (requires Docker >= 1.12).
Companion files to the following post: https://thisendout.com/2016/09/13/deploying-docker-swarm-with-ansible/
## Assumptions
This playbook assumes a running Docker daemon on the hosts and that the following Ansible inventory groups have been populated: `manager` and `worker`.
## Variables
You can override the `swarm_iface` variable in Ansible to determine the listening interface for your swarm hosts.
## `swarm.yml` vs. `swarm-facts.yml`
The `swarm.yml` playbook uses a shell statement for determining cluster membership where the `swarm-facts.yml` playbook uses the `docker_info_facts` module for injecting Docker info as facts then checking cluster membership against that.