You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
588 B

  1. ---
  2. - name: Weave | Start Resources
  3. kube:
  4. name: "weave-net"
  5. kubectl: "{{ bin_dir }}/kubectl"
  6. filename: "{{ kube_config_dir }}/weave-net.yml"
  7. resource: "ds"
  8. namespace: "kube-system"
  9. state: "latest"
  10. when: inventory_hostname == groups['kube-master'][0]
  11. - name: Weave | Wait for Weave to become available
  12. uri:
  13. url: http://127.0.0.1:6784/status
  14. return_content: yes
  15. register: weave_status
  16. retries: 180
  17. delay: 5
  18. until: "weave_status.status == 200 and 'Status: ready' in weave_status.content"
  19. when: inventory_hostname == groups['kube-master'][0]