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:
7
tasks/swarm-join.yml
Normal file
7
tasks/swarm-join.yml
Normal 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
|
||||
Reference in New Issue
Block a user