make the swarm address configurable
This commit is contained in:
parent
c83339b408
commit
e38743e004
1 changed files with 2 additions and 2 deletions
|
|
@ -61,12 +61,12 @@
|
|||
docker_swarm:
|
||||
state: join
|
||||
join_token: "{{ docker_swarm_join_token_manager }}"
|
||||
remote_addrs: ['192.168.168.200:2377']
|
||||
remote_addrs: ["{{ docker_swarm_address }}"]
|
||||
when: docker_swarm_manager
|
||||
|
||||
- name: Join swarm as worker
|
||||
docker_swarm:
|
||||
state: join
|
||||
join_token: "{{ docker_swarm_join_token_worker }}"
|
||||
remote_addrs: ['192.168.168.200:2377']
|
||||
remote_addrs: ["{{ docker_swarm_address }}"]
|
||||
when: not docker_swarm_manager
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue