Simple terraform+ansible configuration to quickly spin up a development Docker swarm on my homeserver
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

15 lines
203 B

---
- hosts: managers[0]
become: true
roles:
- swarm-init
- hosts: managers:!managers[0]
become: true
roles:
- swarm-manager
- hosts: workers
become: true
roles:
- swarm-worker