github.com/weaveworks/common@v0.0.0-20230728070032-dd9e68f319d5/tools/config_management/roles/weave-net/tasks/main.yml (about)

     1  ---
     2  # Set up Weave Net.
     3  
     4  - name: install weave net
     5    get_url:
     6      url: https://git.io/weave
     7      dest: /usr/local/bin/weave
     8      mode: 0555
     9  
    10  - name: stop weave net
    11    command: /usr/local/bin/weave stop
    12  
    13  - name: start weave net
    14    command: /usr/local/bin/weave launch
    15  
    16  - name: get weave net's status
    17    command: /usr/local/bin/weave status
    18    changed_when: false
    19    register: weave_status
    20    tags:
    21      - output
    22  
    23  - name: print outpout of `weave status`
    24    debug: msg="{{ weave_status.stdout_lines }}"
    25    tags:
    26      - output