ansible/docker.yml [25:32]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  tasks:
    - name: get swarm status
      shell: >
        set -o pipefail && docker info | grep 'Swarm:' | sed 's/\s*Swarm\:\s*//'
      args:
        executable: bash
      register: swarm_status
      changed_when: "'active' not in swarm_status.stdout_lines"
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



ansible/docker.yml [48:55]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  tasks:
    - name: get swarm status
      shell: >
        set -o pipefail && docker info | grep 'Swarm:' | sed 's/\s*Swarm\:\s*//'
      args:
        executable: bash
      register: swarm_status
      changed_when: "'active' not in swarm_status.stdout_lines"
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



