1
0
mirror of https://github.com/jcwimer/startup-infrastructure synced 2026-03-24 14:24:43 +00:00
Files
startup-infrastructure/tasks/swarm-join.yml

7 lines
220 B
YAML

---
- 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