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.

22 lines
671 B

  1. ---
  2. - include: pre-upgrade.yml
  3. - name: Weave | enable br_netfilter module
  4. modprobe:
  5. name: br_netfilter
  6. state: present
  7. - name: Weave | Copy cni plugins from hyperkube
  8. command: "{{ docker_bin_dir }}/docker run --rm -v /opt/cni/bin:/cnibindir {{ hyperkube_image_repo }}:{{ hyperkube_image_tag }} /bin/cp -r /opt/cni/bin/. /cnibindir/"
  9. register: cni_task_result
  10. until: cni_task_result.rc == 0
  11. retries: 4
  12. delay: "{{ retry_stagger | random + 3 }}"
  13. changed_when: false
  14. tags: [hyperkube, upgrade]
  15. - name: Weave | Create weave-net manifest
  16. template:
  17. src: weave-net.yml.j2
  18. dest: "{{ kube_config_dir }}/weave-net.yml"
  19. register: weave_manifest