Fixed errors in adding managers and workers to swarm

This commit is contained in:
2018-07-13 12:19:31 +00:00
parent 7e633ae83c
commit d760ecef6f
2 changed files with 10 additions and 10 deletions

View File

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

View File

@@ -1,6 +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
command: >
docker swarm join --token "{{ worker_key }}" "{{ join_addr }}":2377
register: docker_swarm_join
changed_when: docker_swarm_join.rc == 0
ignore_errors: true