Create swarm

This commit is contained in:
2018-07-12 10:56:47 -04:00
parent 179aed13b6
commit 7e633ae83c
5 changed files with 89 additions and 4 deletions

6
tasks/swarm-worker.yml Normal file
View File

@@ -0,0 +1,6 @@
- name: Add swarm workers to the cluster
command: >
docker swarm join --token "{{ worker_key }}" "{{ join_addr }}":2377
register: docker_swarm_join
changed_when: docker_swarm_join.rc == 0
ignore_errors: true