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.

24 lines
732 B

  1. - name: Weave | Start Resources
  2. run_once: true
  3. kube:
  4. name: "weave-net"
  5. kubectl: "{{ bin_dir }}/kubectl"
  6. filename: "{{ kube_config_dir }}/weave-net.yml"
  7. resource: "ds"
  8. namespace: "{{system_namespace}}"
  9. state: "{{ item | ternary('latest','present') }}"
  10. with_items: "{{ weave_manifest.changed }}"
  11. delegate_to: "{{groups['kube-master'][0]}}"
  12. - name: "Weave | wait for weave to become available"
  13. uri:
  14. url: http://127.0.0.1:6784/status
  15. return_content: yes
  16. run_once: true
  17. register: weave_status
  18. retries: 10
  19. delay: "{{ retry_stagger | random + 3 }}"
  20. until: "{{ weave_status.status == 200 and
  21. 'Status: ready' in weave_status.content }}"
  22. delegate_to: "{{groups['kube-master'][0]}}"