ivakegg commented on a change in pull request #331: WIP - #254
URL: https://github.com/apache/fluo-muchos/pull/331#discussion_r390419266
##########
File path: ansible/docker.yml
##########
@@ -27,8 +27,9 @@
docker info | egrep '^Swarm: ' | cut -d ' ' -f 2
register: swarm_status
changed_when: "'active' not in swarm_status.stdout_lines"
- - name: initialize swarm
- shell: >
+ - name: initialize swarm
+ shell: |
+ docker swarm leave --force || echo "leaving swarm for multiple setups"
Review comment:
Having the initialize doing a teardown before initialization seems odd to
me, but perhaps I am not understanding something here.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services