1
0
mirror of https://github.com/jcwimer/startup-infrastructure synced 2026-05-13 16:43:17 +00:00

Create swarm and test swarm creation. test function needed renamed because test is a bash thing already

This commit is contained in:
2018-10-10 14:24:42 -04:00
parent 2c0ca361de
commit 9f4b12185a
8 changed files with 127 additions and 28 deletions

7
tasks/swarm-join.yml Normal file
View File

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